Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007623/0.0007623, allocations: 84 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003517/0.003517, allocations: 145.7 kB / 24.68 MB, free: 9.426 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8197/0.8197, allocations: 173.4 MB / 201.2 MB, free: 9.445 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.052e-06/1.052e-06, allocations: 0 / 319.7 MB, free: 5.855 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.437e-05/1.542e-05, allocations: 13.59 kB / 319.7 MB, free: 5.844 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.003028/0.003043, allocations: 3.656 MB / 323.4 MB, free: 2.164 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001053/0.004096, allocations: 0.9816 MB / 324.3 MB, free: 1.176 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001463/0.004243, allocations: 8 kB / 324.4 MB, free: 1.168 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001613/0.004404, allocations: 91.06 kB / 324.4 MB, free: 1.078 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000201/0.004605, allocations: 194.3 kB / 324.6 MB, free: 0.8867 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003183/0.004923, allocations: 223.6 kB / 324.9 MB, free: 0.668 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005076/0.005431, allocations: 0.8366 MB / 325.7 MB, free: 15.82 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001846/0.005615, allocations: 105.5 kB / 325.8 MB, free: 15.72 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003397/0.005955, allocations: 463 kB / 326.2 MB, free: 15.27 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002434/0.006198, allocations: 275.3 kB / 326.5 MB, free: 15 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.697e-05/0.006265, allocations: 80 kB / 326.6 MB, free: 14.92 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.337e-05/0.006329, allocations: 84 kB / 326.7 MB, free: 14.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.252e-05/0.006411, allocations: 159.4 kB / 326.8 MB, free: 14.68 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001542/0.006565, allocations: 235.5 kB / 327.1 MB, free: 14.45 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005492/0.007115, allocations: 0.8998 MB / 328 MB, free: 13.55 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.104e-06/0.007117, allocations: 0 / 328 MB, free: 13.55 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.51e-07/0.007118, allocations: 0 / 328 MB, free: 13.55 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.007124, allocations: 0 / 328 MB, free: 13.55 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.001371/0.008494, allocations: 0.9616 MB / 328.9 MB, free: 12.55 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.34e-05/0.008528, allocations: 12.86 kB / 328.9 MB, free: 12.54 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.968e-05/0.008607, allocations: 64.56 kB / 329 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003743/0.008982, allocations: 363.6 kB / 329.4 MB, free: 12.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.48e-05/0.009006, allocations: 29.38 kB / 329.4 MB, free: 12.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.276e-05/0.009059, allocations: 40.36 kB / 329.4 MB, free: 12.03 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007793/0.009839, allocations: 0.6207 MB / 330 MB, free: 11.38 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.00985, allocations: 192 / 330 MB, free: 11.38 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.318e-05/0.009883, allocations: 16.38 kB / 330.1 MB, free: 11.36 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.009891, allocations: 11.94 kB / 330.1 MB, free: 11.35 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009635/0.01085, allocations: 0.6284 MB / 330.7 MB, free: 10.72 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001952/0.01281, allocations: 1.882 MB / 332.6 MB, free: 8.758 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001735/0.01454, allocations: 0.8003 MB / 333.4 MB, free: 7.945 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005282/0.01507, allocations: 368.4 kB / 333.7 MB, free: 7.586 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.674e-05/0.0151, allocations: 4.328 kB / 333.7 MB, free: 7.582 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005943/0.01569, allocations: 460.2 kB / 334.2 MB, free: 7.109 MB / 298.7 MB Notification: Performance of pre-optimization done (n=40): time 1.302e-06/0.01569, allocations: 0 / 334.2 MB, free: 7.109 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.005946/0.02164, allocations: 2.211 MB / 336.4 MB, free: 4.887 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.32e-05/0.02168, allocations: 81.11 kB / 336.5 MB, free: 4.789 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000267/0.02195, allocations: 389.6 kB / 336.9 MB, free: 4.398 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.5e-05/0.02198, allocations: 37.7 kB / 336.9 MB, free: 4.355 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001125/0.0221, allocations: 232.8 kB / 337.1 MB, free: 4.125 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.933e-05/0.02217, allocations: 138.8 kB / 337.3 MB, free: 3.988 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.989e-05/0.02227, allocations: 74.02 kB / 337.3 MB, free: 3.906 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.148e-05/0.02237, allocations: 346.8 kB / 337.7 MB, free: 3.559 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004876/0.02285, allocations: 326.4 kB / 338 MB, free: 3.23 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004961/0.02335, allocations: 389.6 kB / 338.4 MB, free: 2.828 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008836/0.02423, allocations: 0.5798 MB / 339 MB, free: 2.234 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.02424, allocations: 7.938 kB / 339 MB, free: 2.227 MB / 298.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001673/0.02591, allocations: 0.9881 MB / 339.9 MB, free: 1.219 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.036e-05/0.02594, allocations: 33.7 kB / 340 MB, free: 1.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-06/0.02595, allocations: 0 / 340 MB, free: 1.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006622/0.02661, allocations: 404.4 kB / 340.4 MB, free: 0.7812 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002193/0.02683, allocations: 87.92 kB / 340.5 MB, free: 0.6953 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004271/0.0311, allocations: 3.475 MB / 343.9 MB, free: 13.12 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002804/0.03138, allocations: 87.7 kB / 344 MB, free: 13.04 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.108e-05/0.03141, allocations: 11.98 kB / 344 MB, free: 13.03 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 (trapezoidCurrent.signalSource.count,$PRE.trapezoidCurrent.signalSource.count,trapezoidCurrent.signalSource.T_start,$PRE.trapezoidCurrent.signalSource.T_start,simpleTriac.idealDiode1.off,simpleTriac.idealDiode.off,$whenCondition1) * 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.0001514/0.03156, allocations: 173.8 kB / 344.2 MB, free: 12.85 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.644e-05/0.03161, allocations: 51.66 kB / 344.3 MB, free: 12.8 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.859e-05/0.03167, allocations: 52.31 kB / 344.3 MB, free: 12.74 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.806e-06/0.03167, allocations: 4 kB / 344.3 MB, free: 12.74 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.234e-06/0.03167, allocations: 7.875 kB / 344.3 MB, free: 12.73 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.03168, allocations: 7.984 kB / 344.3 MB, free: 12.72 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003415/0.03202, allocations: 425.4 kB / 344.7 MB, free: 12.28 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.03202, allocations: 0 / 344.7 MB, free: 12.28 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002158/0.03224, allocations: 83.91 kB / 344.8 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005943/0.03283, allocations: 392.6 kB / 345.2 MB, free: 11.81 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.88e-05/0.03286, allocations: 19.92 kB / 345.2 MB, free: 11.79 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004053/0.03691, allocations: 3.457 MB / 348.7 MB, free: 8.234 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.03691, allocations: 4 kB / 348.7 MB, free: 8.23 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002747/0.03966, allocations: 1.453 MB / 350.1 MB, free: 6.754 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001477/0.03981, allocations: 95.64 kB / 350.2 MB, free: 6.66 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.941e-05/0.03985, allocations: 11.98 kB / 350.2 MB, free: 6.648 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000244/0.04009, allocations: 75.92 kB / 350.3 MB, free: 6.574 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.487e-05/0.04019, allocations: 51.91 kB / 350.4 MB, free: 6.523 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.309e-05/0.04021, allocations: 11.98 kB / 350.4 MB, free: 6.512 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001969/0.04041, allocations: 279.2 kB / 350.7 MB, free: 6.238 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.04041, allocations: 4 kB / 350.7 MB, free: 6.234 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003589/0.04076, allocations: 183.7 kB / 350.8 MB, free: 6.055 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.0001068/0.04087, allocations: 103.2 kB / 350.9 MB, free: 5.945 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00136/0.04223, allocations: 0.9246 MB / 351.9 MB, free: 4.988 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.04223, allocations: 3.938 kB / 351.9 MB, free: 4.984 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007364/0.04297, allocations: 0.5415 MB / 352.4 MB, free: 4.43 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002648/0.04323, allocations: 80.33 kB / 352.5 MB, free: 4.355 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001597/0.04483, allocations: 1.151 MB / 353.6 MB, free: 3.176 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001359/0.04497, allocations: 236.7 kB / 353.9 MB, free: 2.918 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.527e-05/0.04506, allocations: 36.48 kB / 353.9 MB, free: 2.883 MB / 314.7 MB Notification: Performance of SimCode: time 4.91e-07/0.04506, allocations: 0 / 353.9 MB, free: 2.883 MB / 314.7 MB Notification: Performance of Templates: time 0.007632/0.0527, allocations: 9.955 MB / 363.9 MB, free: 8.961 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.520212066359818]