Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001166/0.001166, allocations: 200.4 kB / 17.43 MB, free: 4.277 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.46/1.46, allocations: 229.5 MB / 247.7 MB, free: 6.324 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009219/0.000922, allocations: 100.1 kB / 299.9 MB, free: 5.348 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002752/0.0002751, allocations: 8 kB / 360.6 MB, free: 8.484 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3271/0.3274, allocations: 51.41 MB / 412.1 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.003494/0.3309, allocations: 3.522 MB / 415.6 MB, free: 22.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001586/0.3326, allocations: 1.314 MB / 416.9 MB, free: 21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000181/0.3328, allocations: 8 kB / 416.9 MB, free: 21 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000164/0.3329, allocations: 59.52 kB / 417 MB, free: 20.94 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002665/0.3332, allocations: 157.1 kB / 417.1 MB, free: 20.79 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003782/0.3336, allocations: 195.8 kB / 417.3 MB, free: 20.59 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005143/0.3341, allocations: 0.751 MB / 418 MB, free: 19.84 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002235/0.3344, allocations: 151 kB / 418.2 MB, free: 19.69 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002899/0.3347, allocations: 262.9 kB / 418.5 MB, free: 19.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002863/0.3349, allocations: 306.6 kB / 418.8 MB, free: 19.13 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.931e-05/0.335, allocations: 36 kB / 418.8 MB, free: 19.09 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001062/0.3351, allocations: 40 kB / 418.8 MB, free: 19.05 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.907e-05/0.3352, allocations: 115.4 kB / 418.9 MB, free: 18.94 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002061/0.3354, allocations: 308.2 kB / 419.2 MB, free: 18.63 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005289/0.336, allocations: 0.7745 MB / 420 MB, free: 17.86 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.336, allocations: 0 / 420 MB, free: 17.86 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.336, allocations: 0 / 420 MB, free: 17.86 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.664e-06/0.336, allocations: 0 / 420 MB, free: 17.86 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.002104/0.3381, allocations: 0.9994 MB / 421 MB, free: 16.8 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.3382, allocations: 12.03 kB / 421 MB, free: 16.79 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001911/0.3384, allocations: 68.27 kB / 421.1 MB, free: 16.72 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004196/0.3388, allocations: 410 kB / 421.5 MB, free: 16.28 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.742e-05/0.3388, allocations: 33.36 kB / 421.5 MB, free: 16.25 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.127e-05/0.3389, allocations: 36.38 kB / 421.6 MB, free: 16.21 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001239/0.3402, allocations: 0.6422 MB / 422.2 MB, free: 15.54 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.408e-05/0.3402, allocations: 0 / 422.2 MB, free: 15.54 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.771e-05/0.3402, allocations: 12 kB / 422.2 MB, free: 15.53 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.075e-05/0.3403, allocations: 8 kB / 422.2 MB, free: 15.52 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001662/0.3419, allocations: 0.7104 MB / 422.9 MB, free: 14.81 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002993/0.3449, allocations: 2.207 MB / 425.1 MB, free: 12.5 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00351/0.3485, allocations: 0.9839 MB / 426.1 MB, free: 11.51 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009282/0.3494, allocations: 443.8 kB / 426.6 MB, free: 11.08 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.372e-05/0.3495, allocations: 8.312 kB / 426.6 MB, free: 11.07 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009994/0.3505, allocations: 466.7 kB / 427 MB, free: 10.6 MB / 298.7 MB Notification: Performance of pre-optimization done (n=40): time 1.994e-06/0.3505, allocations: 0 / 427 MB, free: 10.6 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.01282/0.3633, allocations: 2.648 MB / 429.7 MB, free: 7.918 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.909e-05/0.3634, allocations: 81.11 kB / 429.7 MB, free: 7.82 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003786/0.3638, allocations: 405.9 kB / 430.1 MB, free: 7.418 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.033e-05/0.3638, allocations: 33.7 kB / 430.2 MB, free: 7.379 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.3639, allocations: 232.6 kB / 430.4 MB, free: 7.145 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.112e-05/0.364, allocations: 134.1 kB / 430.5 MB, free: 7.012 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.992e-05/0.3641, allocations: 11.94 kB / 430.5 MB, free: 7 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.339e-05/0.3641, allocations: 358.7 kB / 430.9 MB, free: 6.641 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000817/0.365, allocations: 332.6 kB / 431.2 MB, free: 6.312 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008121/0.3658, allocations: 378 kB / 431.6 MB, free: 5.934 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001486/0.3673, allocations: 0.6655 MB / 432.3 MB, free: 5.258 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.3673, allocations: 0 / 432.3 MB, free: 5.258 MB / 298.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.002147/0.3694, allocations: 0.971 MB / 433.2 MB, free: 4.27 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.152e-05/0.3695, allocations: 37.69 kB / 433.3 MB, free: 4.227 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.3695, allocations: 4 kB / 433.3 MB, free: 4.223 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001058/0.3706, allocations: 416.5 kB / 433.7 MB, free: 3.812 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000447/0.371, allocations: 107.9 kB / 433.8 MB, free: 3.707 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006682/0.3777, allocations: 3.494 MB / 437.3 MB, free: 80 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006456/0.3784, allocations: 115.7 kB / 437.4 MB, free: 15.96 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.263e-05/0.3784, allocations: 16 kB / 437.4 MB, free: 15.95 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,$PRE.trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.T_start,$PRE.trapezoidCurrent.signalSource.count,trapezoidCurrent.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(4,12)} Notification: Performance of prepare postOptimizeDAE: time 0.000222/0.3787, allocations: 165.8 kB / 437.6 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.062e-05/0.3787, allocations: 43.44 kB / 437.6 MB, free: 15.73 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001079/0.3789, allocations: 60.45 kB / 437.7 MB, free: 15.67 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.3789, allocations: 11.88 kB / 437.7 MB, free: 15.66 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.374e-06/0.3789, allocations: 0 / 437.7 MB, free: 15.66 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.3789, allocations: 0 / 437.7 MB, free: 15.66 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006292/0.3795, allocations: 0.6105 MB / 438.3 MB, free: 15 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.838e-06/0.3795, allocations: 0 / 438.3 MB, free: 15 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004839/0.38, allocations: 103.9 kB / 438.4 MB, free: 14.9 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001083/0.3811, allocations: 420.5 kB / 438.8 MB, free: 14.49 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.672e-05/0.3812, allocations: 11.98 kB / 438.8 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007453/0.3886, allocations: 3.498 MB / 442.3 MB, free: 10.84 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.3887, allocations: 0 / 442.3 MB, free: 10.84 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005755/0.3944, allocations: 1.654 MB / 444 MB, free: 9.168 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002363/0.3947, allocations: 188.3 kB / 444.1 MB, free: 8.965 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.147e-05/0.3948, allocations: 4 kB / 444.2 MB, free: 8.961 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005809/0.3954, allocations: 95.91 kB / 444.2 MB, free: 8.867 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001363/0.3955, allocations: 51.92 kB / 444.3 MB, free: 8.816 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.72e-05/0.3956, allocations: 11.94 kB / 444.3 MB, free: 8.805 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003041/0.3959, allocations: 291.1 kB / 444.6 MB, free: 8.52 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3959, allocations: 4 kB / 444.6 MB, free: 8.516 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005641/0.3964, allocations: 167.8 kB / 444.8 MB, free: 8.352 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (L.i,simpleTriac.thyristor.vControl,simpleTriac.thyristor1.vControl) * Number of discrete variables: 5 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.count) * Number of discrete states: 1 (trapezoidCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001549/0.3966, allocations: 120.7 kB / 444.9 MB, free: 8.223 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0026/0.3992, allocations: 1.005 MB / 445.9 MB, free: 7.191 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3992, allocations: 4.062 kB / 445.9 MB, free: 7.188 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001494/0.4007, allocations: 0.5959 MB / 446.5 MB, free: 6.578 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004736/0.4012, allocations: 81.41 kB / 446.6 MB, free: 6.496 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003019/0.4043, allocations: 1.47 MB / 448 MB, free: 5.008 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003714/0.4046, allocations: 0.843 MB / 448.9 MB, free: 4.141 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002396/0.4049, allocations: 43.41 kB / 448.9 MB, free: 4.098 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001082/0.405, allocations: 27.42 kB / 448.9 MB, free: 4.07 MB / 314.7 MB Notification: Performance of SimCode: time 2.2e-07/0.405, allocations: 0 / 448.9 MB, free: 4.07 MB / 314.7 MB Notification: Performance of Templates: time 0.01898/0.424, allocations: 12.7 MB / 461.6 MB, free: 7.43 MB / 330.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches