Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009552/0.0009552, allocations: 81.97 kB / 22.21 MB, free: 2.289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 168.7 kB / 25.61 MB, free: 8.582 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.943/0.943, allocations: 177.1 MB / 206 MB, free: 4.477 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5050,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5050,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 274.2 MB, free: 4.398 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.601e-05/1.758e-05, allocations: 2.312 kB / 274.2 MB, free: 4.395 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.003153/0.003171, allocations: 2.915 MB / 277.1 MB, free: 1.48 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001375/0.004546, allocations: 0.789 MB / 277.9 MB, free: 0.6914 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000156/0.004702, allocations: 4 kB / 277.9 MB, free: 0.6875 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001569/0.004859, allocations: 51.44 kB / 278 MB, free: 0.6367 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001765/0.005036, allocations: 107.8 kB / 278.1 MB, free: 0.5312 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003687/0.005404, allocations: 111.7 kB / 278.2 MB, free: 432 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003544/0.005759, allocations: 430 kB / 278.6 MB, free: 0 / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001919/0.005951, allocations: 95.59 kB / 278.7 MB, free: 15.9 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003024/0.006253, allocations: 227.6 kB / 278.9 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001809/0.006434, allocations: 131.6 kB / 279 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.123e-05/0.006475, allocations: 36 kB / 279.1 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.098e-05/0.006546, allocations: 40 kB / 279.1 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.227e-05/0.006599, allocations: 91.66 kB / 279.2 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.139e-05/0.00669, allocations: 119.7 kB / 279.3 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002961/0.006986, allocations: 271.1 kB / 279.6 MB, free: 15 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.475e-06/0.006989, allocations: 0 / 279.6 MB, free: 15 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.02e-07/0.006989, allocations: 0 / 279.6 MB, free: 15 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.071e-06/0.006995, allocations: 0 / 279.6 MB, free: 15 MB / 266.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.0009767/0.007972, allocations: 0.6566 MB / 280.2 MB, free: 14.31 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.008007, allocations: 8.031 kB / 280.2 MB, free: 14.3 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001398/0.008147, allocations: 64.7 kB / 280.3 MB, free: 14.24 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000263/0.00841, allocations: 232.8 kB / 280.5 MB, free: 13.98 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.341e-05/0.008433, allocations: 20.88 kB / 280.6 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.418e-05/0.008467, allocations: 28.38 kB / 280.6 MB, free: 13.93 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002876/0.008755, allocations: 284.7 kB / 280.9 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.008767, allocations: 4.188 kB / 280.9 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.119e-05/0.008788, allocations: 8.375 kB / 280.9 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.104e-05/0.008799, allocations: 11.94 kB / 280.9 MB, free: 13.6 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001151/0.008914, allocations: 79.36 kB / 281 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009468/0.009861, allocations: 1.057 MB / 282 MB, free: 12.41 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002439/0.01011, allocations: 155.1 kB / 282.2 MB, free: 12.24 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001312/0.01024, allocations: 83.62 kB / 282.3 MB, free: 12.16 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.841e-05/0.01025, allocations: 7.938 kB / 282.3 MB, free: 12.15 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001537/0.01041, allocations: 189.2 kB / 282.4 MB, free: 11.92 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 1.342e-06/0.01041, allocations: 0 / 282.4 MB, free: 11.92 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.0006832/0.01109, allocations: 344 kB / 282.8 MB, free: 11.58 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.659e-05/0.01115, allocations: 136.5 kB / 282.9 MB, free: 11.41 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001626/0.01131, allocations: 268.2 kB / 283.2 MB, free: 11.14 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.159e-05/0.01133, allocations: 33.73 kB / 283.2 MB, free: 11.1 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.01144, allocations: 219.3 kB / 283.4 MB, free: 10.88 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.269e-05/0.01149, allocations: 75.39 kB / 283.5 MB, free: 10.8 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.986e-05/0.01156, allocations: 59.3 kB / 283.6 MB, free: 10.73 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.01173, allocations: 0.5001 MB / 284.1 MB, free: 10.22 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.638e-05/0.01177, allocations: 31.91 kB / 284.1 MB, free: 10.19 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.812e-05/0.01187, allocations: 142.2 kB / 284.2 MB, free: 10.02 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001252/0.012, allocations: 107.3 kB / 284.3 MB, free: 9.895 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.012, allocations: 0 / 284.3 MB, free: 9.895 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000244/0.01224, allocations: 199.3 kB / 284.5 MB, free: 9.691 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.01226, allocations: 4 kB / 284.5 MB, free: 9.688 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.92e-06/0.01226, allocations: 0 / 284.5 MB, free: 9.688 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002009/0.01246, allocations: 75.55 kB / 284.6 MB, free: 9.609 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.413e-05/0.01255, allocations: 27.92 kB / 284.6 MB, free: 9.582 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001472/0.01402, allocations: 2.318 MB / 286.9 MB, free: 7.156 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001109/0.01413, allocations: 27.88 kB / 287 MB, free: 7.129 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.258e-05/0.01414, allocations: 4 kB / 287 MB, free: 7.125 MB / 266.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,idealTriac.fire1,idealTriac.idealThyristor1.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart) * 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.0004544/0.0146, allocations: 180.5 kB / 287.2 MB, free: 6.938 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.536e-05/0.01463, allocations: 31.86 kB / 287.2 MB, free: 6.906 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.452e-05/0.01467, allocations: 30.27 kB / 287.2 MB, free: 6.875 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.01467, allocations: 4 kB / 287.2 MB, free: 6.871 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.494e-06/0.01467, allocations: 0 / 287.2 MB, free: 6.871 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.01468, allocations: 112 / 287.2 MB, free: 6.871 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005461/0.01522, allocations: 0.6332 MB / 287.9 MB, free: 6.195 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.01523, allocations: 0 / 287.9 MB, free: 6.195 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.279e-05/0.0153, allocations: 23.98 kB / 287.9 MB, free: 6.172 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001607/0.01546, allocations: 67.59 kB / 287.9 MB, free: 6.102 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.22e-05/0.01547, allocations: 4 kB / 287.9 MB, free: 6.098 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001418/0.01689, allocations: 2.318 MB / 290.3 MB, free: 3.668 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.01689, allocations: 8.031 kB / 290.3 MB, free: 3.66 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003062/0.0172, allocations: 363.7 kB / 290.6 MB, free: 3.277 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.445e-05/0.01726, allocations: 47.7 kB / 290.7 MB, free: 3.23 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.09e-05/0.01728, allocations: 8 kB / 290.7 MB, free: 3.223 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.397e-05/0.01738, allocations: 12 kB / 290.7 MB, free: 3.211 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.186e-05/0.01745, allocations: 35.92 kB / 290.7 MB, free: 3.176 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.648e-06/0.01746, allocations: 8 kB / 290.7 MB, free: 3.168 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.68e-05/0.01754, allocations: 185.1 kB / 290.9 MB, free: 2.984 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01754, allocations: 0 / 290.9 MB, free: 2.984 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002933/0.01784, allocations: 99.86 kB / 291 MB, free: 2.887 MB / 266.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.0001005/0.01794, allocations: 99.25 kB / 291.1 MB, free: 2.781 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003972/0.01834, allocations: 355.1 kB / 291.5 MB, free: 2.418 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.01834, allocations: 0 / 291.5 MB, free: 2.418 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002222/0.01856, allocations: 289.5 kB / 291.7 MB, free: 2.113 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002655/0.01883, allocations: 56.12 kB / 291.8 MB, free: 2.062 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001203/0.02003, allocations: 0.5417 MB / 292.3 MB, free: 1.484 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.41e-05/0.0201, allocations: 92.3 kB / 292.4 MB, free: 1.375 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.393e-05/0.02018, allocations: 18.28 kB / 292.4 MB, free: 1.359 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001616/0.02034, allocations: 130.2 kB / 292.6 MB, free: 1.23 MB / 266.7 MB Notification: Performance of SimCode: time 8.31e-07/0.02034, allocations: 0 / 292.6 MB, free: 1.23 MB / 266.7 MB Notification: Performance of Templates: time 0.007254/0.02759, allocations: 5.017 MB / 297.6 MB, free: 12.32 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8697088547050953]