Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001438/0.001438, allocations: 179.2 kB / 17.36 MB, free: 4.445 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.665/1.665, allocations: 205.6 MB / 223.7 MB, free: 8.941 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008092/0.0008093, allocations: 90.31 kB / 272.1 MB, free: 8.125 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003172/0.0003173, allocations: 8 kB / 329 MB, free: 15.06 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2669/0.2673, allocations: 47.57 MB / 376.6 MB, free: 45.59 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.002581/0.2699, allocations: 2.463 MB / 379.1 MB, free: 43.65 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001167/0.2711, allocations: 0.731 MB / 379.8 MB, free: 43.05 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001736/0.2713, allocations: 4.281 kB / 379.8 MB, free: 43.05 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001381/0.2714, allocations: 36.06 kB / 379.8 MB, free: 43.02 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001657/0.2716, allocations: 86 kB / 379.9 MB, free: 42.95 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002614/0.2719, allocations: 98.42 kB / 380 MB, free: 42.86 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003532/0.2723, allocations: 390 kB / 380.4 MB, free: 42.63 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002524/0.2725, allocations: 115.3 kB / 380.5 MB, free: 42.56 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001781/0.2727, allocations: 120.4 kB / 380.6 MB, free: 42.5 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001915/0.2729, allocations: 135.3 kB / 380.8 MB, free: 42.41 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.708e-05/0.273, allocations: 16.53 kB / 380.8 MB, free: 42.41 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.089e-05/0.273, allocations: 18.59 kB / 380.8 MB, free: 42.41 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.427e-05/0.2731, allocations: 56.56 kB / 380.8 MB, free: 42.36 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001687/0.2733, allocations: 171.9 kB / 381 MB, free: 42.23 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003528/0.2736, allocations: 396.5 kB / 381.4 MB, free: 41.94 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/0.2736, allocations: 1.156 kB / 381.4 MB, free: 41.94 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.2736, allocations: 4 kB / 381.4 MB, free: 41.94 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.2736, allocations: 0 / 381.4 MB, free: 41.94 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.0009408/0.2746, allocations: 0.5739 MB / 382 MB, free: 41.42 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.933e-05/0.2747, allocations: 9.25 kB / 382 MB, free: 41.42 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.36e-05/0.2747, allocations: 38.47 kB / 382 MB, free: 41.4 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003159/0.2751, allocations: 281.6 kB / 382.3 MB, free: 41.12 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.645e-05/0.2751, allocations: 19.12 kB / 382.3 MB, free: 41.11 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.621e-05/0.2752, allocations: 25.09 kB / 382.3 MB, free: 41.1 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005161/0.2757, allocations: 300.6 kB / 382.6 MB, free: 40.9 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.2757, allocations: 0 / 382.6 MB, free: 40.9 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.041e-05/0.2757, allocations: 10.47 kB / 382.6 MB, free: 40.89 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.2758, allocations: 6.875 kB / 382.7 MB, free: 40.89 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004193/0.2762, allocations: 200.5 kB / 382.8 MB, free: 40.8 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001497/0.2777, allocations: 1.165 MB / 384 MB, free: 39.8 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005092/0.2782, allocations: 224.4 kB / 384.2 MB, free: 39.67 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002921/0.2785, allocations: 149.6 kB / 384.4 MB, free: 39.6 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.168e-05/0.2786, allocations: 2 kB / 384.4 MB, free: 39.6 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003218/0.2789, allocations: 172.6 kB / 384.5 MB, free: 39.46 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 2.384e-06/0.2789, allocations: 1.312 kB / 384.5 MB, free: 39.46 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.001402/0.2803, allocations: 0.5226 MB / 385.1 MB, free: 39.12 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.176e-05/0.2804, allocations: 140.1 kB / 385.2 MB, free: 38.96 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002242/0.2806, allocations: 241.7 kB / 385.4 MB, free: 38.78 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.933e-05/0.2806, allocations: 31.73 kB / 385.5 MB, free: 38.75 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.425e-05/0.2807, allocations: 167.5 kB / 385.6 MB, free: 38.59 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.697e-05/0.2808, allocations: 68.27 kB / 385.7 MB, free: 38.54 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.121e-05/0.2808, allocations: 4 kB / 385.7 MB, free: 38.53 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.729e-05/0.2808, allocations: 336.1 kB / 386 MB, free: 38.2 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001442/0.281, allocations: 73.59 kB / 386.1 MB, free: 38.16 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001591/0.2812, allocations: 120.7 kB / 386.2 MB, free: 38.07 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002876/0.2815, allocations: 169.9 kB / 386.4 MB, free: 37.97 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.2815, allocations: 3.938 kB / 386.4 MB, free: 37.97 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004519/0.2819, allocations: 297.5 kB / 386.7 MB, free: 37.8 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.282, allocations: 13.19 kB / 386.7 MB, free: 37.8 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.282, allocations: 1.469 kB / 386.7 MB, free: 37.8 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003193/0.2823, allocations: 91.22 kB / 386.8 MB, free: 37.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000135/0.2824, allocations: 26.7 kB / 386.8 MB, free: 37.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00177/0.2842, allocations: 1.945 MB / 388.8 MB, free: 35.83 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002094/0.2844, allocations: 43.78 kB / 388.8 MB, free: 35.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.598e-05/0.2845, allocations: 4 kB / 388.8 MB, free: 35.79 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: 8 ($whenCondition1,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.idealTriac.idealThyristor.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * 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 {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001294/0.2846, allocations: 151.4 kB / 389 MB, free: 35.63 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.071e-05/0.2846, allocations: 19.81 kB / 389 MB, free: 35.61 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.043e-05/0.2847, allocations: 34.17 kB / 389 MB, free: 35.57 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.2847, allocations: 7.938 kB / 389 MB, free: 35.57 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.706e-06/0.2847, allocations: 4 kB / 389 MB, free: 35.56 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.2847, allocations: 4 kB / 389 MB, free: 35.56 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007578/0.2855, allocations: 0.7711 MB / 389.8 MB, free: 34.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.2855, allocations: 0 / 389.8 MB, free: 34.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001048/0.2856, allocations: 27.95 kB / 389.8 MB, free: 34.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002217/0.2858, allocations: 88.8 kB / 389.9 MB, free: 34.61 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.635e-05/0.2859, allocations: 11.98 kB / 389.9 MB, free: 34.6 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001517/0.2874, allocations: 1.925 MB / 391.8 MB, free: 32.54 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.2874, allocations: 0 / 391.8 MB, free: 32.54 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005159/0.2879, allocations: 460.8 kB / 392.3 MB, free: 32.07 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.69e-05/0.288, allocations: 128.8 kB / 392.4 MB, free: 31.93 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.527e-05/0.2881, allocations: 4 kB / 392.4 MB, free: 31.92 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001873/0.2883, allocations: 31.98 kB / 392.5 MB, free: 31.89 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.242e-05/0.2884, allocations: 27.95 kB / 392.5 MB, free: 31.86 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.364e-05/0.2884, allocations: 8 kB / 392.5 MB, free: 31.86 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001249/0.2885, allocations: 172.5 kB / 392.7 MB, free: 31.69 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2885, allocations: 0 / 392.7 MB, free: 31.69 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003895/0.2889, allocations: 91.84 kB / 392.8 MB, free: 31.6 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 2 (idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(2,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001191/0.289, allocations: 123.3 kB / 392.9 MB, free: 31.46 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000555/0.2896, allocations: 353.7 kB / 393.2 MB, free: 31.11 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2896, allocations: 4 kB / 393.2 MB, free: 31.11 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003067/0.2899, allocations: 270.7 kB / 393.5 MB, free: 30.83 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004115/0.2904, allocations: 60.38 kB / 393.5 MB, free: 30.77 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009509/0.2913, allocations: 0.7314 MB / 394.3 MB, free: 30.02 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002007/0.2915, allocations: 0.7713 MB / 395 MB, free: 29.22 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.537e-05/0.2916, allocations: 18.28 kB / 395.1 MB, free: 29.2 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.11e-05/0.2917, allocations: 23.42 kB / 395.1 MB, free: 29.18 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2917, allocations: 3.938 kB / 395.1 MB, free: 29.17 MB / 298.7 MB Notification: Performance of Templates: time 0.006863/0.2986, allocations: 4.409 MB / 399.5 MB, free: 24.81 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches