Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001131/0.001131, allocations: 81.81 kB / 21.42 MB, free: 3.07 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001187/0.001187, allocations: 167.4 kB / 24.82 MB, free: 9.277 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.02/1.02, allocations: 177 MB / 205.1 MB, free: 5.465 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.413e-06/1.413e-06, allocations: 0 / 273.3 MB, free: 1.203 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.284e-05/1.426e-05, allocations: 2.312 kB / 273.3 MB, free: 1.199 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.0072/0.007214, allocations: 3.99 MB / 277.3 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005167/0.01238, allocations: 1.056 MB / 278.4 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001897/0.01257, allocations: 8 kB / 278.4 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001943/0.01277, allocations: 83.14 kB / 278.5 MB, free: 12.03 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002817/0.01305, allocations: 210.2 kB / 278.7 MB, free: 11.82 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004216/0.01347, allocations: 227.6 kB / 278.9 MB, free: 11.6 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006426/0.01411, allocations: 0.852 MB / 279.8 MB, free: 10.75 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002015/0.01431, allocations: 117.5 kB / 279.9 MB, free: 10.62 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003515/0.01783, allocations: 471 kB / 280.3 MB, free: 10.16 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003016/0.01813, allocations: 291.2 kB / 280.6 MB, free: 9.875 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.637e-05/0.01822, allocations: 76 kB / 280.7 MB, free: 9.801 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001163/0.01833, allocations: 84 kB / 280.8 MB, free: 9.719 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.422e-05/0.01843, allocations: 159.4 kB / 280.9 MB, free: 9.562 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001834/0.01861, allocations: 227.5 kB / 281.1 MB, free: 9.34 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004722/0.01908, allocations: 0.5334 MB / 281.7 MB, free: 8.805 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.843e-06/0.01908, allocations: 0 / 281.7 MB, free: 8.805 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.51e-07/0.01909, allocations: 0 / 281.7 MB, free: 8.805 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.01909, allocations: 0 / 281.7 MB, free: 8.805 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.004377/0.02347, allocations: 1.011 MB / 282.7 MB, free: 7.75 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.0235, allocations: 11.98 kB / 282.7 MB, free: 7.738 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001889/0.02369, allocations: 100.5 kB / 282.8 MB, free: 7.641 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000376/0.02407, allocations: 362.5 kB / 283.2 MB, free: 7.258 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.175e-05/0.0241, allocations: 29.38 kB / 283.2 MB, free: 7.23 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.887e-05/0.02416, allocations: 40.36 kB / 283.2 MB, free: 7.191 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006434/0.0248, allocations: 449.3 kB / 283.7 MB, free: 6.711 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.02481, allocations: 192 / 283.7 MB, free: 6.711 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.355e-05/0.02485, allocations: 12.38 kB / 283.7 MB, free: 6.699 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.135e-05/0.02486, allocations: 15.94 kB / 283.7 MB, free: 6.684 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002892/0.02515, allocations: 154.8 kB / 283.8 MB, free: 6.531 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00513/0.03028, allocations: 1.903 MB / 285.7 MB, free: 4.551 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00109/0.03137, allocations: 372.7 kB / 286.1 MB, free: 4.176 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002104/0.03158, allocations: 136.2 kB / 286.2 MB, free: 4.039 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.767e-05/0.0316, allocations: 8.328 kB / 286.2 MB, free: 4.031 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002948/0.0319, allocations: 235.8 kB / 286.5 MB, free: 3.773 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 1.733e-06/0.0319, allocations: 4 kB / 286.5 MB, free: 3.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.00421/0.03611, allocations: 1.14 MB / 287.6 MB, free: 2.617 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.696e-05/0.03615, allocations: 85.09 kB / 287.7 MB, free: 2.516 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002831/0.03643, allocations: 398.5 kB / 288.1 MB, free: 2.109 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.562e-05/0.03647, allocations: 37.7 kB / 288.1 MB, free: 2.066 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001437/0.03661, allocations: 283.5 kB / 288.4 MB, free: 1.785 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.347e-05/0.0367, allocations: 138.8 kB / 288.5 MB, free: 1.648 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001264/0.03683, allocations: 75.69 kB / 288.6 MB, free: 1.562 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.03698, allocations: 0.5273 MB / 289.1 MB, free: 1.023 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000144/0.03712, allocations: 90.53 kB / 289.2 MB, free: 0.9297 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001783/0.0373, allocations: 170.5 kB / 289.4 MB, free: 0.7422 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002755/0.03757, allocations: 191.3 kB / 289.6 MB, free: 0.5391 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.03758, allocations: 4 kB / 289.6 MB, free: 0.5352 MB / 266.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009167/0.03849, allocations: 478.9 kB / 290.1 MB, free: 48 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.758e-05/0.03852, allocations: 32.83 kB / 290.1 MB, free: 12 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.03853, allocations: 0 / 290.1 MB, free: 12 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1093/0.1479, allocations: 209.8 kB / 290.3 MB, free: 25.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002824/0.1481, allocations: 73.27 kB / 290.4 MB, free: 25.32 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002877/0.151, allocations: 2.756 MB / 293.1 MB, free: 23.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003731/0.1514, allocations: 71.5 kB / 293.2 MB, free: 23.41 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.784e-05/0.1514, allocations: 12.72 kB / 293.2 MB, free: 23.41 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.0001799/0.1516, allocations: 171.5 kB / 293.4 MB, free: 23.25 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.771e-05/0.1517, allocations: 62.17 kB / 293.4 MB, free: 23.25 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.235e-05/0.1517, allocations: 62.77 kB / 293.5 MB, free: 23.24 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.1517, allocations: 7.906 kB / 293.5 MB, free: 23.23 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.1518, allocations: 1.25 kB / 293.5 MB, free: 23.23 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.1518, allocations: 2.109 kB / 293.5 MB, free: 23.23 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003937/0.1522, allocations: 327.2 kB / 293.8 MB, free: 23.12 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.1522, allocations: 2.188 kB / 293.8 MB, free: 23.12 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002331/0.1524, allocations: 66.56 kB / 293.9 MB, free: 23.12 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005287/0.1529, allocations: 210.2 kB / 294.1 MB, free: 23.11 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.24e-05/0.153, allocations: 8.219 kB / 294.1 MB, free: 23.11 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002637/0.1556, allocations: 2.751 MB / 296.9 MB, free: 21.15 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.1556, allocations: 4.5 kB / 296.9 MB, free: 21.15 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001404/0.157, allocations: 0.5991 MB / 297.5 MB, free: 21.03 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001511/0.1571, allocations: 94.98 kB / 297.6 MB, free: 21 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.501e-05/0.1572, allocations: 15.05 kB / 297.6 MB, free: 21 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002025/0.1574, allocations: 45.98 kB / 297.6 MB, free: 21 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001226/0.1575, allocations: 56.64 kB / 297.7 MB, free: 21 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.489e-05/0.1575, allocations: 10.56 kB / 297.7 MB, free: 21 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000186/0.1577, allocations: 264.2 kB / 297.9 MB, free: 20.87 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1577, allocations: 0 / 297.9 MB, free: 20.87 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005219/0.1582, allocations: 175 kB / 298.1 MB, free: 20.85 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.0001295/0.1584, allocations: 113.7 kB / 298.2 MB, free: 20.76 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007699/0.1591, allocations: 0.5827 MB / 298.8 MB, free: 20.46 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1592, allocations: 3.844 kB / 298.8 MB, free: 20.46 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004904/0.1596, allocations: 422.8 kB / 299.2 MB, free: 20.26 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003091/0.16, allocations: 87.2 kB / 299.3 MB, free: 20.26 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001751/0.1617, allocations: 0.9979 MB / 300.3 MB, free: 19.76 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.453e-05/0.1618, allocations: 119.5 kB / 300.4 MB, free: 19.69 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001541/0.162, allocations: 43.5 kB / 300.5 MB, free: 19.67 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00022/0.1622, allocations: 160.5 kB / 300.6 MB, free: 19.61 MB / 266.7 MB Notification: Performance of SimCode: time 1.052e-06/0.1622, allocations: 0 / 300.6 MB, free: 19.61 MB / 266.7 MB Notification: Performance of Templates: time 0.01456/0.1767, allocations: 13.55 MB / 314.2 MB, free: 11.38 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.485980382654816]