Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.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.001017/0.001017, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001004/0.001004, allocations: 161 kB / 24.56 MB, free: 16 kB / 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.915/0.915, allocations: 177.1 MB / 205 MB, free: 5.602 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.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 273 MB, free: 1.516 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.49e-05/2.634e-05, allocations: 2.312 kB / 273 MB, free: 1.512 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.003842/0.003868, allocations: 4.046 MB / 277 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001624/0.005492, allocations: 1.044 MB / 278.1 MB, free: 12.39 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002095/0.005701, allocations: 11.94 kB / 278.1 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002264/0.005928, allocations: 91.08 kB / 278.2 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003082/0.006236, allocations: 202.2 kB / 278.4 MB, free: 12.09 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005346/0.006771, allocations: 223.6 kB / 278.6 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006668/0.007437, allocations: 0.8559 MB / 279.4 MB, free: 11.02 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002073/0.007645, allocations: 121.5 kB / 279.6 MB, free: 10.89 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007754/0.00842, allocations: 467 kB / 280 MB, free: 10.43 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003044/0.008725, allocations: 283.3 kB / 280.3 MB, free: 10.15 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.546e-05/0.00881, allocations: 76 kB / 280.4 MB, free: 10.08 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001325/0.008942, allocations: 91.98 kB / 280.5 MB, free: 9.988 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.117e-05/0.009034, allocations: 155.4 kB / 280.6 MB, free: 9.836 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001943/0.009228, allocations: 235.4 kB / 280.8 MB, free: 9.605 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00056/0.009788, allocations: 0.5257 MB / 281.4 MB, free: 9.078 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.009792, allocations: 0 / 281.4 MB, free: 9.078 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.11e-07/0.009793, allocations: 4 kB / 281.4 MB, free: 9.074 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.746e-06/0.009802, allocations: 3.938 kB / 281.4 MB, free: 9.07 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001391/0.01119, allocations: 0.9998 MB / 282.4 MB, free: 8.027 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.01123, allocations: 8.031 kB / 282.4 MB, free: 8.02 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002039/0.01144, allocations: 100.5 kB / 282.5 MB, free: 7.922 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003999/0.01184, allocations: 370.5 kB / 282.8 MB, free: 7.531 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.262e-05/0.01187, allocations: 29.38 kB / 282.9 MB, free: 7.504 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.479e-05/0.01193, allocations: 36.38 kB / 282.9 MB, free: 7.469 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006465/0.01257, allocations: 477.3 kB / 283.4 MB, free: 6.965 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.01258, allocations: 192 / 283.4 MB, free: 6.965 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.507e-05/0.01262, allocations: 20.36 kB / 283.4 MB, free: 6.945 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.229e-05/0.01263, allocations: 11.94 kB / 283.4 MB, free: 6.934 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003458/0.01298, allocations: 193.8 kB / 283.6 MB, free: 6.742 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001824/0.0148, allocations: 1.961 MB / 285.6 MB, free: 4.695 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001006/0.01581, allocations: 405.1 kB / 286 MB, free: 4.289 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002417/0.01605, allocations: 156.2 kB / 286.1 MB, free: 4.133 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.056e-05/0.01608, allocations: 12.31 kB / 286.1 MB, free: 4.121 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003128/0.01639, allocations: 255.8 kB / 286.4 MB, free: 3.844 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 1.343e-06/0.01639, allocations: 0 / 286.4 MB, free: 3.844 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.003902/0.0203, allocations: 1.198 MB / 287.6 MB, free: 2.633 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.538e-05/0.02034, allocations: 81.11 kB / 287.6 MB, free: 2.535 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002764/0.02062, allocations: 414.7 kB / 288.1 MB, free: 2.113 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.427e-05/0.02065, allocations: 29.7 kB / 288.1 MB, free: 2.078 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001308/0.02078, allocations: 287.5 kB / 288.4 MB, free: 1.793 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.689e-05/0.02086, allocations: 138.8 kB / 288.5 MB, free: 1.656 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001026/0.02096, allocations: 79.7 kB / 288.6 MB, free: 1.566 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.02108, allocations: 0.5235 MB / 289.1 MB, free: 1.031 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000169/0.02125, allocations: 110.5 kB / 289.2 MB, free: 0.918 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000187/0.02144, allocations: 190.5 kB / 289.4 MB, free: 0.7109 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003088/0.02175, allocations: 223.3 kB / 289.6 MB, free: 488 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.02175, allocations: 3.938 kB / 289.6 MB, free: 484 kB / 266.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.1053/0.127, allocations: 0.5015 MB / 290.1 MB, free: 25.3 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.262e-05/0.1271, allocations: 33.95 kB / 290.1 MB, free: 25.27 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.1271, allocations: 0.75 kB / 290.1 MB, free: 25.27 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005957/0.1277, allocations: 221.1 kB / 290.4 MB, free: 25.26 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002637/0.128, allocations: 76.25 kB / 290.4 MB, free: 25.26 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002903/0.1309, allocations: 2.81 MB / 293.3 MB, free: 23.32 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000298/0.1312, allocations: 60.92 kB / 293.3 MB, free: 23.32 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.792e-05/0.1312, allocations: 14.81 kB / 293.3 MB, free: 23.32 MB / 266.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.0001368/0.1313, allocations: 182.6 kB / 293.5 MB, free: 23.16 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.004e-05/0.1314, allocations: 58.23 kB / 293.6 MB, free: 23.16 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.541e-05/0.1314, allocations: 55 kB / 293.6 MB, free: 23.15 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.1314, allocations: 9.078 kB / 293.6 MB, free: 23.15 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.1314, allocations: 0 / 293.6 MB, free: 23.15 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.1315, allocations: 3.109 kB / 293.6 MB, free: 23.15 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003518/0.1318, allocations: 382.2 kB / 294 MB, free: 23.01 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.1318, allocations: 0 / 294 MB, free: 23.01 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002105/0.132, allocations: 68.25 kB / 294.1 MB, free: 23.01 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004426/0.1325, allocations: 222.8 kB / 294.3 MB, free: 23 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.358e-05/0.1325, allocations: 10.86 kB / 294.3 MB, free: 23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002612/0.1351, allocations: 2.823 MB / 297.1 MB, free: 21.02 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.1351, allocations: 0 / 297.1 MB, free: 21.02 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001484/0.1366, allocations: 0.6577 MB / 297.8 MB, free: 20.89 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001508/0.1367, allocations: 101.6 kB / 297.9 MB, free: 20.86 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.348e-05/0.1368, allocations: 10.56 kB / 297.9 MB, free: 20.86 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001994/0.137, allocations: 48.86 kB / 297.9 MB, free: 20.86 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001191/0.1371, allocations: 50.73 kB / 298 MB, free: 20.86 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.57e-05/0.1371, allocations: 14.36 kB / 298 MB, free: 20.86 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001881/0.1373, allocations: 280.9 kB / 298.3 MB, free: 20.73 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1373, allocations: 1.031 kB / 298.3 MB, free: 20.73 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004539/0.1378, allocations: 177.4 kB / 298.4 MB, free: 20.71 MB / 266.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.000109/0.1379, allocations: 119.9 kB / 298.6 MB, free: 20.63 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008514/0.1387, allocations: 0.6116 MB / 299.2 MB, free: 20.33 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1387, allocations: 1.188 kB / 299.2 MB, free: 20.33 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004999/0.1392, allocations: 445.1 kB / 299.6 MB, free: 20.12 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003056/0.1395, allocations: 93.39 kB / 299.7 MB, free: 20.11 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001786/0.1413, allocations: 0.9983 MB / 300.7 MB, free: 19.62 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.775e-05/0.1414, allocations: 119.4 kB / 300.8 MB, free: 19.55 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001521/0.1416, allocations: 48.05 kB / 300.9 MB, free: 19.53 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.714e-05/0.1417, allocations: 35.12 kB / 300.9 MB, free: 19.52 MB / 266.7 MB Notification: Performance of SimCode: time 1.032e-06/0.1417, allocations: 0 / 300.9 MB, free: 19.52 MB / 266.7 MB Notification: Performance of Templates: time 0.01389/0.1556, allocations: 13.39 MB / 314.3 MB, free: 11.22 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.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: 3.5435470421798527]