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.001758/0.001758, allocations: 117.9 kB / 18.5 MB, free: 4.52 MB / 14.72 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.002309/0.002309, allocations: 214.5 kB / 21.46 MB, free: 1.566 MB / 14.72 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.581/1.581, allocations: 230.2 MB / 254.5 MB, free: 15.41 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002004/0.002004, allocations: 63.89 kB / 373.8 MB, free: 9.906 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1309/0.1329, allocations: 53.32 MB / 427.2 MB, free: 4.484 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.00625/0.1391, allocations: 4.119 MB / 431.3 MB, free: 352 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002773/0.1419, allocations: 1.063 MB / 432.4 MB, free: 15.27 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003766/0.1423, allocations: 11.88 kB / 432.4 MB, free: 15.26 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002921/0.1426, allocations: 91.12 kB / 432.5 MB, free: 15.17 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004356/0.143, allocations: 178.5 kB / 432.6 MB, free: 15 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006566/0.1436, allocations: 239.6 kB / 432.9 MB, free: 14.76 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009735/0.1446, allocations: 0.8212 MB / 433.7 MB, free: 13.94 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002875/0.1449, allocations: 124.9 kB / 433.8 MB, free: 13.81 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005562/0.1455, allocations: 318.9 kB / 434.1 MB, free: 13.5 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004629/0.1459, allocations: 366.6 kB / 434.5 MB, free: 13.14 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001164/0.146, allocations: 84 kB / 434.6 MB, free: 13.05 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001501/0.1462, allocations: 84 kB / 434.6 MB, free: 12.97 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000166/0.1464, allocations: 159.4 kB / 434.8 MB, free: 12.82 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003584/0.1467, allocations: 346.4 kB / 435.1 MB, free: 12.48 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001025/0.1477, allocations: 0.8524 MB / 436 MB, free: 11.62 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.1477, allocations: 0 / 436 MB, free: 11.62 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1477, allocations: 0 / 436 MB, free: 11.62 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.215e-05/0.1478, allocations: 4 kB / 436 MB, free: 11.62 MB / 366.1 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.002832/0.1506, allocations: 1.049 MB / 437 MB, free: 10.51 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/0.1506, allocations: 8.031 kB / 437 MB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002554/0.1509, allocations: 72.55 kB / 437.1 MB, free: 10.43 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007425/0.1516, allocations: 434.2 kB / 437.5 MB, free: 9.969 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.209e-05/0.1517, allocations: 33.36 kB / 437.6 MB, free: 9.934 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.047e-05/0.1518, allocations: 40.38 kB / 437.6 MB, free: 9.895 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001597/0.1534, allocations: 0.6071 MB / 438.2 MB, free: 9.266 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.691e-05/0.1534, allocations: 0 / 438.2 MB, free: 9.266 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.163e-05/0.1534, allocations: 19.94 kB / 438.2 MB, free: 9.246 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.691e-05/0.1535, allocations: 8 kB / 438.2 MB, free: 9.238 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002059/0.1555, allocations: 0.6362 MB / 438.9 MB, free: 8.602 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004061/0.1596, allocations: 2.165 MB / 441 MB, free: 6.336 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003976/0.1636, allocations: 0.8276 MB / 441.9 MB, free: 5.5 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001139/0.1647, allocations: 389.1 kB / 442.3 MB, free: 5.117 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.215e-05/0.1647, allocations: 8.312 kB / 442.3 MB, free: 5.109 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001264/0.166, allocations: 430.6 kB / 442.7 MB, free: 4.672 MB / 366.1 MB Notification: Performance of pre-optimization done (n=40): time 2.685e-06/0.166, allocations: 4 kB / 442.7 MB, free: 4.668 MB / 366.1 MB Notification: Performance of matching and sorting (n=40): time 0.01527/0.1813, allocations: 2.379 MB / 445.1 MB, free: 2.258 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001052/0.1814, allocations: 85.11 kB / 445.1 MB, free: 2.156 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007984/0.1822, allocations: 413.9 kB / 445.6 MB, free: 1.746 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001087/0.1823, allocations: 37.69 kB / 445.6 MB, free: 1.703 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002409/0.1825, allocations: 236.9 kB / 445.8 MB, free: 1.465 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001848/0.1827, allocations: 142.8 kB / 446 MB, free: 1.324 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002602/0.183, allocations: 70.06 kB / 446 MB, free: 1.246 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000214/0.1832, allocations: 362.7 kB / 446.4 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001068/0.1843, allocations: 296.6 kB / 446.7 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001106/0.1854, allocations: 342 kB / 447 MB, free: 260 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2426/0.4279, allocations: 0.5913 MB / 447.6 MB, free: 24.85 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.4279, allocations: 1.781 kB / 447.6 MB, free: 24.85 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003651/0.4316, allocations: 0.9921 MB / 448.6 MB, free: 24.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.407e-05/0.4316, allocations: 32.98 kB / 448.6 MB, free: 24.74 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.4317, allocations: 0 / 448.6 MB, free: 24.74 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001245/0.4329, allocations: 434.2 kB / 449 MB, free: 24.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005111/0.4334, allocations: 88.41 kB / 449.1 MB, free: 24.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00835/0.4418, allocations: 3.817 MB / 453 MB, free: 22.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007363/0.4425, allocations: 92.41 kB / 453 MB, free: 22.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.374e-05/0.4425, allocations: 14.23 kB / 453.1 MB, free: 22.84 MB / 366.1 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.0002831/0.4428, allocations: 179 kB / 453.2 MB, free: 22.69 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.701e-05/0.4429, allocations: 51.86 kB / 453.3 MB, free: 22.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000117/0.443, allocations: 55.94 kB / 453.3 MB, free: 22.64 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.443, allocations: 5.062 kB / 453.3 MB, free: 22.64 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.443, allocations: 2.516 kB / 453.3 MB, free: 22.64 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.4431, allocations: 1.594 kB / 453.3 MB, free: 22.64 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008075/0.4439, allocations: 0.6189 MB / 454 MB, free: 22.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.4439, allocations: 2.609 kB / 454 MB, free: 22.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005155/0.4444, allocations: 82.64 kB / 454 MB, free: 22.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001287/0.4457, allocations: 438.4 kB / 454.5 MB, free: 22.16 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.213e-05/0.4457, allocations: 8.438 kB / 454.5 MB, free: 22.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008712/0.4544, allocations: 3.808 MB / 458.3 MB, free: 19.75 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.4544, allocations: 4 kB / 458.3 MB, free: 19.75 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006513/0.4609, allocations: 1.489 MB / 459.8 MB, free: 19.27 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004404/0.4614, allocations: 192.1 kB / 460 MB, free: 19.11 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.099e-05/0.4615, allocations: 7.734 kB / 460 MB, free: 19.1 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006118/0.4621, allocations: 77.23 kB / 460.1 MB, free: 19.09 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000272/0.4624, allocations: 52.38 kB / 460.1 MB, free: 19.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.075e-05/0.4624, allocations: 14.98 kB / 460.1 MB, free: 19.07 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004682/0.4629, allocations: 293 kB / 460.4 MB, free: 18.93 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4629, allocations: 0 / 460.4 MB, free: 18.93 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008155/0.4637, allocations: 178.8 kB / 460.6 MB, free: 18.9 MB / 366.1 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.0001789/0.4639, allocations: 103.3 kB / 460.7 MB, free: 18.81 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002804/0.4667, allocations: 0.9533 MB / 461.6 MB, free: 18.41 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.4667, allocations: 0 / 461.6 MB, free: 18.41 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001651/0.4683, allocations: 0.5784 MB / 462.2 MB, free: 18.15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005647/0.4689, allocations: 92.44 kB / 462.3 MB, free: 18.12 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003276/0.4722, allocations: 1.261 MB / 463.6 MB, free: 17.48 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003416/0.4725, allocations: 0.8391 MB / 464.4 MB, free: 16.78 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002522/0.4728, allocations: 45.12 kB / 464.4 MB, free: 16.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001278/0.4729, allocations: 33.64 kB / 464.5 MB, free: 16.76 MB / 366.1 MB Notification: Performance of SimCode: time 1.342e-06/0.4729, allocations: 4 kB / 464.5 MB, free: 16.75 MB / 366.1 MB Notification: Performance of Templates: time 0.02275/0.4957, allocations: 14.14 MB / 478.6 MB, free: 10.91 MB / 366.1 MB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 6.018691923469305]