Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00142/0.00142, allocations: 113.5 kB / 17.33 MB, free: 6.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001399/0.0014, allocations: 209.8 kB / 18.27 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.586/1.586, allocations: 227.4 MB / 246.5 MB, free: 9.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002593/0.002593, allocations: 67.7 kB / 306.5 MB, free: 0.6719 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1472/0.1498, allocations: 50.55 MB / 357 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.006205/0.1561, allocations: 2.979 MB / 360 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001787/0.1579, allocations: 0.7908 MB / 360.8 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001754/0.1581, allocations: 7.938 kB / 360.8 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001941/0.1584, allocations: 35.69 kB / 360.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002309/0.1586, allocations: 91.25 kB / 360.9 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004824/0.1591, allocations: 95.91 kB / 361 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005991/0.1597, allocations: 410.3 kB / 361.4 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003288/0.1601, allocations: 135.2 kB / 361.6 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002992/0.1604, allocations: 159.4 kB / 361.7 MB, free: 9.418 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002393/0.1606, allocations: 163.3 kB / 361.9 MB, free: 9.258 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.825e-05/0.1607, allocations: 36 kB / 361.9 MB, free: 9.223 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001094/0.1608, allocations: 48 kB / 362 MB, free: 9.176 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001381/0.1609, allocations: 75.7 kB / 362 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002145/0.1612, allocations: 171.2 kB / 362.2 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005276/0.1617, allocations: 430.8 kB / 362.6 MB, free: 8.512 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.251e-06/0.1617, allocations: 4 kB / 362.6 MB, free: 8.508 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.989e-06/0.1617, allocations: 7.984 kB / 362.6 MB, free: 8.5 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.1617, allocations: 0 / 362.6 MB, free: 8.5 MB / 302.1 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.001279/0.163, allocations: 0.6129 MB / 363.3 MB, free: 7.836 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.579e-05/0.1631, allocations: 12.03 kB / 363.3 MB, free: 7.824 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002458/0.1634, allocations: 40.55 kB / 363.3 MB, free: 7.785 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004233/0.1638, allocations: 288.7 kB / 363.6 MB, free: 7.461 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.33e-05/0.1638, allocations: 20.94 kB / 363.6 MB, free: 7.438 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.168e-05/0.1639, allocations: 28.38 kB / 363.6 MB, free: 7.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006233/0.1645, allocations: 292.8 kB / 363.9 MB, free: 7.113 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.723e-05/0.1646, allocations: 3.938 kB / 363.9 MB, free: 7.109 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.955e-05/0.1646, allocations: 12 kB / 363.9 MB, free: 7.098 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.1646, allocations: 4 kB / 363.9 MB, free: 7.094 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004524/0.1651, allocations: 206.2 kB / 364.1 MB, free: 6.891 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001921/0.167, allocations: 1.148 MB / 365.3 MB, free: 5.664 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005982/0.1676, allocations: 226.6 kB / 365.5 MB, free: 5.434 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003378/0.168, allocations: 148.2 kB / 365.7 MB, free: 5.289 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.813e-05/0.168, allocations: 4 kB / 365.7 MB, free: 5.285 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004185/0.1684, allocations: 162.7 kB / 365.8 MB, free: 5.102 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.603e-06/0.1685, allocations: 4 kB / 365.8 MB, free: 5.098 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001533/0.17, allocations: 0.5184 MB / 366.3 MB, free: 4.551 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001225/0.1701, allocations: 132.5 kB / 366.5 MB, free: 4.391 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002998/0.1704, allocations: 245 kB / 366.7 MB, free: 4.141 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.641e-05/0.1705, allocations: 33.7 kB / 366.7 MB, free: 4.102 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001654/0.1707, allocations: 180.4 kB / 366.9 MB, free: 3.922 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.043e-05/0.1707, allocations: 63.11 kB / 367 MB, free: 3.859 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001115/0.1708, allocations: 53.61 kB / 367 MB, free: 3.801 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001784/0.171, allocations: 330.8 kB / 367.4 MB, free: 3.469 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001646/0.1712, allocations: 71.97 kB / 367.4 MB, free: 3.398 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002153/0.1714, allocations: 129.1 kB / 367.5 MB, free: 3.254 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003138/0.1718, allocations: 173 kB / 367.7 MB, free: 3.074 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.1718, allocations: 0 / 367.7 MB, free: 3.074 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000517/0.1723, allocations: 290.2 kB / 368 MB, free: 2.781 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.1723, allocations: 11.94 kB / 368 MB, free: 2.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.1723, allocations: 0 / 368 MB, free: 2.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003763/0.1727, allocations: 96.78 kB / 368.1 MB, free: 2.672 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001556/0.1729, allocations: 27.92 kB / 368.1 MB, free: 2.645 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00257/0.1755, allocations: 2.139 MB / 370.3 MB, free: 372 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002218/0.1757, allocations: 35.72 kB / 370.3 MB, free: 336 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.778e-05/0.1757, allocations: 8.062 kB / 370.3 MB, free: 328 kB / 302.1 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.0001986/0.1759, allocations: 145.8 kB / 370.5 MB, free: 172 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.125e-05/0.176, allocations: 31.66 kB / 370.5 MB, free: 140 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.924e-05/0.1761, allocations: 34.28 kB / 370.5 MB, free: 104 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.1761, allocations: 7.938 kB / 370.5 MB, free: 96 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.934e-06/0.1761, allocations: 0 / 370.5 MB, free: 96 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.1761, allocations: 0 / 370.5 MB, free: 96 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.256/0.4321, allocations: 0.763 MB / 371.3 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.883e-06/0.4321, allocations: 1.359 kB / 371.3 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001379/0.4323, allocations: 19.81 kB / 371.3 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003199/0.4326, allocations: 91.28 kB / 371.4 MB, free: 19.85 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.294e-05/0.4326, allocations: 6.516 kB / 371.4 MB, free: 19.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002215/0.4348, allocations: 2.137 MB / 373.5 MB, free: 18.38 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.4349, allocations: 8.047 kB / 373.6 MB, free: 18.38 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007209/0.4356, allocations: 459.6 kB / 374 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001182/0.4357, allocations: 121.1 kB / 374.1 MB, free: 18.01 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.234e-05/0.4358, allocations: 6.625 kB / 374.1 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002054/0.436, allocations: 21.83 kB / 374.2 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001186/0.4361, allocations: 33.06 kB / 374.2 MB, free: 17.99 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.695e-05/0.4361, allocations: 5.781 kB / 374.2 MB, free: 17.99 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001885/0.4363, allocations: 178.9 kB / 374.4 MB, free: 17.88 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4363, allocations: 0.7188 kB / 374.4 MB, free: 17.88 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005072/0.4368, allocations: 90.03 kB / 374.5 MB, free: 17.88 MB / 302.1 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.0001728/0.437, allocations: 112.1 kB / 374.6 MB, free: 17.78 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007127/0.4377, allocations: 359.4 kB / 374.9 MB, free: 17.59 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.4378, allocations: 0.875 kB / 374.9 MB, free: 17.59 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003986/0.4382, allocations: 263.7 kB / 375.2 MB, free: 17.42 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000437/0.4386, allocations: 60.27 kB / 375.2 MB, free: 17.4 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001193/0.4398, allocations: 0.7006 MB / 375.9 MB, free: 16.97 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003584/0.4402, allocations: 0.7692 MB / 376.7 MB, free: 16.27 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001342/0.4403, allocations: 25.89 kB / 376.7 MB, free: 16.26 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.617e-05/0.4404, allocations: 22.08 kB / 376.7 MB, free: 16.25 MB / 302.1 MB Notification: Performance of SimCode: time 6.51e-07/0.4404, allocations: 1.156 kB / 376.7 MB, free: 16.25 MB / 302.1 MB Notification: Performance of Templates: time 0.01152/0.4519, allocations: 4.731 MB / 381.5 MB, free: 15.96 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches