Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001004/0.001004, allocations: 76.62 kB / 22.21 MB, free: 2.27 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001774/0.001774, allocations: 142.2 kB / 25.59 MB, free: 8.93 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9557/0.9557, allocations: 173.4 MB / 202.3 MB, free: 8.289 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.182e-06/1.182e-06, allocations: 0 / 269.2 MB, free: 9.844 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.23e-05/2.348e-05, allocations: 3.031 kB / 269.2 MB, free: 9.84 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.003189/0.003213, allocations: 2.898 MB / 272.1 MB, free: 6.945 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00117/0.004382, allocations: 0.7206 MB / 272.8 MB, free: 6.223 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001506/0.004533, allocations: 8.469 kB / 272.8 MB, free: 6.215 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001462/0.004679, allocations: 47.5 kB / 272.9 MB, free: 6.168 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001737/0.004853, allocations: 109.3 kB / 273 MB, free: 6.062 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002769/0.00513, allocations: 104.5 kB / 273.1 MB, free: 5.961 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005406/0.005671, allocations: 423.2 kB / 273.5 MB, free: 5.547 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002219/0.005892, allocations: 95.59 kB / 273.6 MB, free: 5.449 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003303/0.006223, allocations: 231.4 kB / 273.8 MB, free: 5.223 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000175/0.006398, allocations: 128.3 kB / 273.9 MB, free: 5.098 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.08e-05/0.006438, allocations: 36 kB / 274 MB, free: 5.062 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.492e-05/0.006473, allocations: 42.09 kB / 274 MB, free: 5.023 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.575e-05/0.006529, allocations: 79.67 kB / 274.1 MB, free: 4.945 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.06e-05/0.00662, allocations: 119.7 kB / 274.2 MB, free: 4.828 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002638/0.006884, allocations: 263.1 kB / 274.5 MB, free: 4.57 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.006887, allocations: 4 kB / 274.5 MB, free: 4.566 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.006888, allocations: 0 / 274.5 MB, free: 4.566 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.817e-06/0.006892, allocations: 1.781 kB / 274.5 MB, free: 4.566 MB / 250.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.0007265/0.007619, allocations: 0.6537 MB / 275.1 MB, free: 3.875 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.127e-05/0.00765, allocations: 8.031 kB / 275.1 MB, free: 3.867 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.481e-05/0.007725, allocations: 56.7 kB / 275.2 MB, free: 3.812 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002408/0.007966, allocations: 235.9 kB / 275.4 MB, free: 3.555 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.642e-05/0.007982, allocations: 16.88 kB / 275.4 MB, free: 3.539 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.488e-05/0.008017, allocations: 24.38 kB / 275.5 MB, free: 3.516 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002782/0.008295, allocations: 276.7 kB / 275.7 MB, free: 3.215 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/0.008305, allocations: 192 / 275.7 MB, free: 3.215 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.002e-05/0.008325, allocations: 12.38 kB / 275.7 MB, free: 3.203 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.11e-05/0.008336, allocations: 19.91 kB / 275.8 MB, free: 3.184 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001162/0.008452, allocations: 79.36 kB / 275.8 MB, free: 3.109 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001074/0.009527, allocations: 1.05 MB / 276.9 MB, free: 1.996 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005796/0.01011, allocations: 155.1 kB / 277 MB, free: 1.832 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001326/0.01024, allocations: 83.62 kB / 277.1 MB, free: 1.746 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.797e-05/0.01026, allocations: 7.938 kB / 277.1 MB, free: 1.738 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001621/0.01042, allocations: 193.2 kB / 277.3 MB, free: 1.508 MB / 250.7 MB Notification: Performance of pre-optimization done (n=22): time 1.382e-06/0.01042, allocations: 0 / 277.3 MB, free: 1.508 MB / 250.7 MB Notification: Performance of matching and sorting (n=22): time 0.0007033/0.01112, allocations: 339.1 kB / 277.7 MB, free: 1.168 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.283e-05/0.01118, allocations: 136.5 kB / 277.8 MB, free: 1.004 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001517/0.01133, allocations: 268.2 kB / 278 MB, free: 0.7227 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.053e-05/0.01135, allocations: 29.7 kB / 278.1 MB, free: 0.6875 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.654e-05/0.01145, allocations: 219.3 kB / 278.3 MB, free: 476 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.462e-05/0.01149, allocations: 75.36 kB / 278.4 MB, free: 400 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.511e-05/0.01155, allocations: 63.31 kB / 278.4 MB, free: 328 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.0117, allocations: 0.504 MB / 278.9 MB, free: 15.8 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.696e-05/0.01175, allocations: 27.97 kB / 279 MB, free: 15.78 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.32e-05/0.01184, allocations: 145.9 kB / 279.1 MB, free: 15.6 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001265/0.01197, allocations: 108.6 kB / 279.2 MB, free: 15.48 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.01197, allocations: 0 / 279.2 MB, free: 15.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002391/0.01221, allocations: 195 kB / 279.4 MB, free: 15.28 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.346e-05/0.01222, allocations: 8.125 kB / 279.4 MB, free: 15.27 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.01223, allocations: 0 / 279.4 MB, free: 15.27 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002184/0.01244, allocations: 63.64 kB / 279.5 MB, free: 15.2 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.675e-05/0.01253, allocations: 31.92 kB / 279.5 MB, free: 15.17 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001611/0.01414, allocations: 2.325 MB / 281.8 MB, free: 12.73 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000109/0.01425, allocations: 23.89 kB / 281.8 MB, free: 12.71 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.217e-05/0.01426, allocations: 4 kB / 281.9 MB, free: 12.71 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.0001166/0.01438, allocations: 180.4 kB / 282 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.759e-05/0.01442, allocations: 31.86 kB / 282.1 MB, free: 12.49 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.615e-05/0.01445, allocations: 26.31 kB / 282.1 MB, free: 12.46 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.01446, allocations: 8 kB / 282.1 MB, free: 12.46 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.01446, allocations: 0 / 282.1 MB, free: 12.46 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.431e-06/0.01446, allocations: 3.984 kB / 282.1 MB, free: 12.45 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006117/0.01508, allocations: 0.6255 MB / 282.7 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.01508, allocations: 0 / 282.7 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.053e-05/0.01516, allocations: 23.94 kB / 282.7 MB, free: 11.76 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001812/0.01534, allocations: 63.62 kB / 282.8 MB, free: 11.7 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.509e-05/0.01536, allocations: 4 kB / 282.8 MB, free: 11.69 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001843/0.0172, allocations: 2.331 MB / 285.1 MB, free: 9.25 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.0172, allocations: 0 / 285.1 MB, free: 9.25 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003142/0.01751, allocations: 366.1 kB / 285.5 MB, free: 8.867 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.32e-05/0.01758, allocations: 51.77 kB / 285.5 MB, free: 8.816 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.512e-05/0.0176, allocations: 8 kB / 285.6 MB, free: 8.809 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.477e-05/0.0177, allocations: 15.98 kB / 285.6 MB, free: 8.793 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.804e-05/0.01778, allocations: 31.94 kB / 285.6 MB, free: 8.762 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.736e-06/0.01778, allocations: 3.938 kB / 285.6 MB, free: 8.758 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.76e-05/0.01787, allocations: 185.1 kB / 285.8 MB, free: 8.578 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.01787, allocations: 0 / 285.8 MB, free: 8.578 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003263/0.0182, allocations: 95.84 kB / 285.9 MB, free: 8.484 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.0001126/0.01831, allocations: 103.2 kB / 286 MB, free: 8.375 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000385/0.0187, allocations: 344.7 kB / 286.3 MB, free: 8.02 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.0187, allocations: 0 / 286.3 MB, free: 8.02 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002384/0.01894, allocations: 285.2 kB / 286.6 MB, free: 7.719 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002925/0.01923, allocations: 61.02 kB / 286.7 MB, free: 7.656 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009389/0.02017, allocations: 0.5491 MB / 287.2 MB, free: 7.074 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.219e-05/0.02023, allocations: 92.31 kB / 287.3 MB, free: 6.965 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.549e-05/0.0203, allocations: 18.3 kB / 287.3 MB, free: 6.945 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001246/0.02042, allocations: 126.1 kB / 287.4 MB, free: 6.82 MB / 266.7 MB Notification: Performance of SimCode: time 1.222e-06/0.02042, allocations: 4 kB / 287.4 MB, free: 6.816 MB / 266.7 MB Notification: Performance of Templates: time 0.007313/0.02773, allocations: 5.01 MB / 292.5 MB, free: 1.91 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.8496877467259765]