Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009426/0.0009425, allocations: 179.6 kB / 16.71 MB, free: 5.09 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.198/1.198, allocations: 225.7 MB / 243.2 MB, free: 8.445 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009206/0.0009206, allocations: 99.5 kB / 294.4 MB, free: 9.469 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000231/0.000231, allocations: 7.938 kB / 354.2 MB, free: 13.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2051/0.2053, allocations: 50.42 MB / 404.6 MB, free: 31.3 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.002983/0.2084, allocations: 3.425 MB / 408 MB, free: 27.86 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00158/0.21, allocations: 1.576 MB / 409.6 MB, free: 26.23 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001725/0.2102, allocations: 7.938 kB / 409.6 MB, free: 26.22 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005902/0.2108, allocations: 221.1 kB / 409.8 MB, free: 26 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003641/0.2111, allocations: 234.9 kB / 410 MB, free: 25.78 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004566/0.2116, allocations: 243.2 kB / 410.3 MB, free: 25.54 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004229/0.212, allocations: 0.689 MB / 411 MB, free: 24.85 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002236/0.2123, allocations: 155 kB / 411.1 MB, free: 24.7 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002308/0.2125, allocations: 239 kB / 411.3 MB, free: 24.46 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002281/0.2127, allocations: 270.7 kB / 411.6 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.042e-05/0.2128, allocations: 28 kB / 411.6 MB, free: 24.17 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001471/0.2129, allocations: 59.98 kB / 411.7 MB, free: 24.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001033/0.2131, allocations: 123.5 kB / 411.8 MB, free: 23.99 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001916/0.2133, allocations: 296.1 kB / 412.1 MB, free: 23.7 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000424/0.2137, allocations: 0.6576 MB / 412.8 MB, free: 23.04 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.2137, allocations: 0 / 412.8 MB, free: 23.04 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.2137, allocations: 0 / 412.8 MB, free: 23.04 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.144e-06/0.2137, allocations: 0 / 412.8 MB, free: 23.04 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001193/0.2149, allocations: 0.8519 MB / 413.6 MB, free: 22.12 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.228e-05/0.215, allocations: 8.031 kB / 413.6 MB, free: 22.12 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.084e-05/0.215, allocations: 68.19 kB / 413.7 MB, free: 22.05 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003963/0.2155, allocations: 402.8 kB / 414.1 MB, free: 21.62 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.791e-05/0.2155, allocations: 29.38 kB / 414.1 MB, free: 21.59 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.928e-05/0.2155, allocations: 40.12 kB / 414.1 MB, free: 21.55 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005823/0.2161, allocations: 445.5 kB / 414.6 MB, free: 21.09 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.2162, allocations: 4 kB / 414.6 MB, free: 21.09 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.434e-05/0.2162, allocations: 16 kB / 414.6 MB, free: 21.07 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.2162, allocations: 8 kB / 414.6 MB, free: 21.07 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004978/0.2167, allocations: 315.8 kB / 414.9 MB, free: 20.75 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001802/0.2185, allocations: 1.726 MB / 416.6 MB, free: 18.93 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005527/0.2191, allocations: 366.9 kB / 417 MB, free: 18.56 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002772/0.2194, allocations: 188.8 kB / 417.2 MB, free: 18.37 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.223e-05/0.2194, allocations: 7.984 kB / 417.2 MB, free: 18.36 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003585/0.2198, allocations: 258.5 kB / 417.4 MB, free: 18.08 MB / 298.7 MB Notification: Performance of pre-optimization done (n=40): time 2.074e-06/0.2198, allocations: 0 / 417.4 MB, free: 18.08 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.001752/0.2216, allocations: 1.029 MB / 418.5 MB, free: 16.96 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.329e-05/0.2216, allocations: 191.8 kB / 418.7 MB, free: 16.73 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004041/0.222, allocations: 497.9 kB / 419.1 MB, free: 16.23 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.398e-05/0.2221, allocations: 37.7 kB / 419.2 MB, free: 16.19 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001165/0.2222, allocations: 252.4 kB / 419.4 MB, free: 15.94 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.962e-05/0.2223, allocations: 126.2 kB / 419.6 MB, free: 15.81 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.684e-05/0.2223, allocations: 8 kB / 419.6 MB, free: 15.8 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.946e-05/0.2224, allocations: 358.8 kB / 419.9 MB, free: 15.45 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000209/0.2226, allocations: 120.8 kB / 420 MB, free: 15.33 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002459/0.2228, allocations: 221.3 kB / 420.2 MB, free: 15.08 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003781/0.2232, allocations: 273.1 kB / 420.5 MB, free: 14.8 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2232, allocations: 0 / 420.5 MB, free: 14.8 MB / 298.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.000641/0.2239, allocations: 480.7 kB / 421 MB, free: 14.31 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.2239, allocations: 4 kB / 421 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.2239, allocations: 4 kB / 421 MB, free: 14.3 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004214/0.2243, allocations: 167.5 kB / 421.2 MB, free: 14.13 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001898/0.2245, allocations: 47.91 kB / 421.2 MB, free: 14.08 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003051/0.2276, allocations: 5.95 MB / 427.1 MB, free: 7.598 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003088/0.2279, allocations: 67.72 kB / 427.2 MB, free: 7.531 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.312e-05/0.2279, allocations: 15.94 kB / 427.2 MB, free: 7.516 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition2,$PRE.booleanStep1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.IdealThyristor1.off,IdealThyristor1.off,IdealThyristor1.fire,IdealGTOThyristor1.off,booleanStep1.combiTimeTable.nextTimeEvent,$PRE.booleanStep1.combiTimeTable.nextTimeEventScaled,booleanStep1.combiTimeTable.nextTimeEventScaled,$PRE.IdealThyristor2.off,IdealThyristor2.off,IdealGTOThyristor2.off,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001774/0.2281, allocations: 184.1 kB / 427.4 MB, free: 7.328 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.039e-05/0.2282, allocations: 59.31 kB / 427.5 MB, free: 7.27 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.049e-05/0.2283, allocations: 64.75 kB / 427.5 MB, free: 7.207 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.2283, allocations: 4 kB / 427.5 MB, free: 7.203 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.2283, allocations: 0 / 427.5 MB, free: 7.203 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.838e-06/0.2283, allocations: 0 / 427.5 MB, free: 7.203 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003629/0.2287, allocations: 493 kB / 428 MB, free: 6.672 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.2287, allocations: 0 / 428 MB, free: 6.672 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001199/0.2288, allocations: 23.98 kB / 428 MB, free: 6.648 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003441/0.2292, allocations: 171.2 kB / 428.2 MB, free: 6.469 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.206e-05/0.2292, allocations: 8 kB / 428.2 MB, free: 6.461 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002924/0.2321, allocations: 5.789 MB / 434 MB, free: 136 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.2321, allocations: 3.938 kB / 434 MB, free: 132 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009109/0.233, allocations: 0.5034 MB / 434.5 MB, free: 15.59 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001785/0.2332, allocations: 156.7 kB / 434.7 MB, free: 15.42 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.308e-05/0.2333, allocations: 12 kB / 434.7 MB, free: 15.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002627/0.2336, allocations: 43.97 kB / 434.7 MB, free: 15.36 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001325/0.2337, allocations: 47.92 kB / 434.8 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.006e-05/0.2338, allocations: 12 kB / 434.8 MB, free: 15.3 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003987/0.2342, allocations: 363.1 kB / 435.1 MB, free: 14.95 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2342, allocations: 0 / 435.1 MB, free: 14.95 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006494/0.2348, allocations: 167.7 kB / 435.3 MB, free: 14.79 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,IdealThyristor1.off,IdealThyristor1.fire,IdealGTOThyristor1.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,IdealGTOThyristor2.off,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 4 (IdealThyristor1.off,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009922/0.2358, allocations: 489.1 kB / 435.8 MB, free: 14.44 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001031/0.2369, allocations: 0.8037 MB / 436.6 MB, free: 13.59 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2369, allocations: 3.938 kB / 436.6 MB, free: 13.58 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006471/0.2375, allocations: 0.6627 MB / 437.2 MB, free: 12.87 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005352/0.2381, allocations: 116.6 kB / 437.4 MB, free: 12.76 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00175/0.2398, allocations: 1.175 MB / 438.5 MB, free: 11.56 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003945/0.2403, allocations: 0.8632 MB / 439.4 MB, free: 10.68 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000173/0.2404, allocations: 48.17 kB / 439.4 MB, free: 10.62 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.843e-05/0.2405, allocations: 31.42 kB / 439.5 MB, free: 10.6 MB / 314.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2405, allocations: 0 / 439.5 MB, free: 10.6 MB / 314.7 MB Notification: Performance of Templates: time 0.01429/0.2548, allocations: 8.678 MB / 448.2 MB, free: 1.949 MB / 314.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicThyristors/CharacteristicThyristors.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches