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.001499/0.001499, allocations: 92.31 kB / 20.96 MB, free: 3.473 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.00153/0.00153, allocations: 161.7 kB / 24.27 MB, free: 168 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 1.457/1.457, allocations: 177.2 MB / 204.6 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] 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.353e-06/1.353e-06, allocations: 0 / 272.3 MB, free: 1.824 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.286e-05/2.422e-05, allocations: 2.312 kB / 272.3 MB, free: 1.82 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005577/0.005601, allocations: 3.71 MB / 276 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002018/0.007619, allocations: 1.032 MB / 277.1 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001945/0.007813, allocations: 11.94 kB / 277.1 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000256/0.00807, allocations: 87.12 kB / 277.2 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003791/0.008449, allocations: 206.2 kB / 277.4 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000565/0.009014, allocations: 227.5 kB / 277.6 MB, free: 12.52 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009703/0.009984, allocations: 0.8442 MB / 278.4 MB, free: 11.68 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002678/0.01025, allocations: 117.5 kB / 278.6 MB, free: 11.55 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008085/0.01106, allocations: 467 kB / 279 MB, free: 11.1 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004252/0.01149, allocations: 283.2 kB / 279.3 MB, free: 10.82 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001254/0.01161, allocations: 88 kB / 279.4 MB, free: 10.73 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001544/0.01177, allocations: 84 kB / 279.5 MB, free: 10.65 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000176/0.01194, allocations: 167.4 kB / 279.6 MB, free: 10.49 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002989/0.01224, allocations: 235.5 kB / 279.9 MB, free: 10.26 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001064/0.0133, allocations: 0.9076 MB / 280.8 MB, free: 9.348 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.01331, allocations: 0 / 280.8 MB, free: 9.348 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.01331, allocations: 0 / 280.8 MB, free: 9.348 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.157e-06/0.01332, allocations: 0 / 280.8 MB, free: 9.348 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.002892/0.01621, allocations: 0.974 MB / 281.7 MB, free: 8.336 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.01625, allocations: 12.03 kB / 281.7 MB, free: 8.324 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003163/0.01656, allocations: 100.5 kB / 281.8 MB, free: 8.227 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007056/0.01727, allocations: 375.6 kB / 282.2 MB, free: 7.832 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.707e-05/0.01732, allocations: 29.38 kB / 282.2 MB, free: 7.805 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.074e-05/0.01741, allocations: 36.38 kB / 282.3 MB, free: 7.77 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001625/0.01903, allocations: 0.6246 MB / 282.9 MB, free: 7.117 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.848e-05/0.01905, allocations: 4.125 kB / 282.9 MB, free: 7.113 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.013e-05/0.01911, allocations: 16.38 kB / 282.9 MB, free: 7.098 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.382e-05/0.01913, allocations: 11.94 kB / 282.9 MB, free: 7.086 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002118/0.02124, allocations: 0.6323 MB / 283.6 MB, free: 6.453 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004124/0.02537, allocations: 1.917 MB / 285.5 MB, free: 4.457 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004591/0.02996, allocations: 0.831 MB / 286.3 MB, free: 3.621 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001151/0.03111, allocations: 373.3 kB / 286.7 MB, free: 3.254 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.646e-05/0.03116, allocations: 8.328 kB / 286.7 MB, free: 3.246 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001304/0.03246, allocations: 464.3 kB / 287.1 MB, free: 2.77 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 1.713e-06/0.03246, allocations: 0 / 287.1 MB, free: 2.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.01587/0.04833, allocations: 2.315 MB / 289.5 MB, free: 448 kB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.82e-05/0.04842, allocations: 89.09 kB / 289.5 MB, free: 340 kB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1285/0.1769, allocations: 391.8 kB / 289.9 MB, free: 29.08 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001781/0.1771, allocations: 34.08 kB / 290 MB, free: 29.05 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001989/0.1773, allocations: 234.2 kB / 290.2 MB, free: 28.97 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001461/0.1775, allocations: 141 kB / 290.3 MB, free: 28.93 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002424/0.1777, allocations: 74.89 kB / 290.4 MB, free: 28.91 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.1778, allocations: 358.5 kB / 290.7 MB, free: 28.6 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001086/0.1789, allocations: 323.4 kB / 291.1 MB, free: 28.57 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001016/0.1799, allocations: 397.1 kB / 291.4 MB, free: 28.48 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001774/0.1817, allocations: 0.594 MB / 292 MB, free: 28.29 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.1817, allocations: 1.875 kB / 292 MB, free: 28.29 MB / 266.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003758/0.1854, allocations: 1.037 MB / 293.1 MB, free: 27.93 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.453e-05/0.1855, allocations: 33.53 kB / 293.1 MB, free: 27.9 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/0.1855, allocations: 0 / 293.1 MB, free: 27.9 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00142/0.1869, allocations: 440.9 kB / 293.5 MB, free: 27.8 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005066/0.1874, allocations: 91.97 kB / 293.6 MB, free: 27.8 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008496/0.1959, allocations: 3.618 MB / 297.3 MB, free: 25.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007302/0.1967, allocations: 96.62 kB / 297.3 MB, free: 25.57 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.535e-05/0.1967, allocations: 14.31 kB / 297.4 MB, free: 25.57 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.000222/0.1969, allocations: 171.9 kB / 297.5 MB, free: 25.41 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001084/0.197, allocations: 62.67 kB / 297.6 MB, free: 25.38 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001094/0.1971, allocations: 55.47 kB / 297.6 MB, free: 25.34 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.1971, allocations: 4.859 kB / 297.6 MB, free: 25.34 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.1971, allocations: 1.281 kB / 297.6 MB, free: 25.34 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.1972, allocations: 5.812 kB / 297.7 MB, free: 25.34 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00056/0.1977, allocations: 436.6 kB / 298.1 MB, free: 25.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.1977, allocations: 3.938 kB / 298.1 MB, free: 25.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000498/0.1982, allocations: 79.86 kB / 298.2 MB, free: 25.09 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001323/0.1995, allocations: 440.7 kB / 298.6 MB, free: 24.98 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.735e-05/0.1996, allocations: 8.016 kB / 298.6 MB, free: 24.97 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008382/0.208, allocations: 3.629 MB / 302.2 MB, free: 22.73 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.208, allocations: 5.375 kB / 302.2 MB, free: 22.72 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006024/0.214, allocations: 1.491 MB / 303.7 MB, free: 22.23 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002396/0.2142, allocations: 105.3 kB / 303.8 MB, free: 22.14 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.454e-05/0.2143, allocations: 15.47 kB / 303.8 MB, free: 22.13 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005937/0.2149, allocations: 73.16 kB / 303.9 MB, free: 22.1 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001549/0.2151, allocations: 51.75 kB / 304 MB, free: 22.07 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.292e-05/0.2151, allocations: 15.95 kB / 304 MB, free: 22.06 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003258/0.2154, allocations: 289.4 kB / 304.3 MB, free: 21.88 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2154, allocations: 0 / 304.3 MB, free: 21.88 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006885/0.2161, allocations: 176.8 kB / 304.4 MB, free: 21.86 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.0001576/0.2163, allocations: 106 kB / 304.5 MB, free: 21.77 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002535/0.2188, allocations: 0.9691 MB / 305.5 MB, free: 21.18 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.2188, allocations: 7.75 kB / 305.5 MB, free: 21.18 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001426/0.2202, allocations: 0.5861 MB / 306.1 MB, free: 20.81 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004233/0.2207, allocations: 89.27 kB / 306.2 MB, free: 20.73 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002788/0.2234, allocations: 1.195 MB / 307.4 MB, free: 19.53 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001487/0.2236, allocations: 239.7 kB / 307.6 MB, free: 19.27 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001898/0.2238, allocations: 39.31 kB / 307.7 MB, free: 19.23 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001123/0.2239, allocations: 36.48 kB / 307.7 MB, free: 19.2 MB / 266.7 MB Notification: Performance of SimCode: time 6.51e-07/0.2239, allocations: 0 / 307.7 MB, free: 19.2 MB / 266.7 MB Notification: Performance of Templates: time 0.01574/0.2396, allocations: 13.38 MB / 321.1 MB, free: 5.973 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 5.536909235990606]