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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009893/0.0009895, allocations: 95.08 kB / 16.3 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009122/0.0009122, allocations: 184.5 kB / 17.19 MB, free: 6.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.405/1.405, allocations: 223.2 MB / 241.1 MB, free: 5.438 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002889/0.0002889, allocations: 7.688 kB / 300.7 MB, free: 6.016 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1629/0.1632, allocations: 50.42 MB / 351.1 MB, free: 11.72 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.00331/0.1666, allocations: 2.358 MB / 353.5 MB, free: 9.352 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001441/0.168, allocations: 0.7095 MB / 354.2 MB, free: 8.637 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003262/0.1684, allocations: 4 kB / 354.2 MB, free: 8.633 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001119/0.1685, allocations: 39.69 kB / 354.2 MB, free: 8.594 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000413/0.1689, allocations: 119.7 kB / 354.4 MB, free: 8.477 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000296/0.1692, allocations: 63.86 kB / 354.4 MB, free: 8.414 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004841/0.1697, allocations: 267.4 kB / 354.7 MB, free: 8.152 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002334/0.17, allocations: 89.89 kB / 354.8 MB, free: 8.059 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002365/0.1702, allocations: 123.5 kB / 354.9 MB, free: 7.938 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002391/0.1705, allocations: 131.4 kB / 355 MB, free: 7.809 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.612e-05/0.1705, allocations: 16 kB / 355 MB, free: 7.793 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.029e-05/0.1706, allocations: 16 kB / 355.1 MB, free: 7.777 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.604e-05/0.1706, allocations: 51.81 kB / 355.1 MB, free: 7.727 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.688e-05/0.1707, allocations: 89.52 kB / 355.2 MB, free: 7.633 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002883/0.171, allocations: 315.1 kB / 355.5 MB, free: 7.324 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.1711, allocations: 4 kB / 355.5 MB, free: 7.32 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.1711, allocations: 0 / 355.5 MB, free: 7.32 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.297e-05/0.1711, allocations: 0 / 355.5 MB, free: 7.32 MB / 286.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.001101/0.1722, allocations: 0.5776 MB / 356.1 MB, free: 6.691 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.1722, allocations: 8.031 kB / 356.1 MB, free: 6.684 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001088/0.1724, allocations: 39.58 kB / 356.1 MB, free: 6.645 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003886/0.1728, allocations: 270.5 kB / 356.4 MB, free: 6.34 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.675e-05/0.1728, allocations: 20.56 kB / 356.4 MB, free: 6.32 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.639e-05/0.1729, allocations: 28 kB / 356.4 MB, free: 6.293 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005701/0.1734, allocations: 284.5 kB / 356.7 MB, free: 6.004 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/0.1735, allocations: 4 kB / 356.7 MB, free: 6 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.455e-05/0.1735, allocations: 8 kB / 356.7 MB, free: 5.992 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.441e-05/0.1735, allocations: 8 kB / 356.7 MB, free: 5.984 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004385/0.174, allocations: 214 kB / 356.9 MB, free: 5.773 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001854/0.1758, allocations: 1.168 MB / 358.1 MB, free: 4.527 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000494/0.1763, allocations: 215.9 kB / 358.3 MB, free: 4.309 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.576e-05/0.1764, allocations: 4.188 kB / 358.3 MB, free: 4.305 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003161/0.1767, allocations: 169.3 kB / 358.5 MB, free: 4.121 MB / 286.1 MB Notification: Performance of pre-optimization done (n=22): time 1.583e-06/0.1767, allocations: 0 / 358.5 MB, free: 4.121 MB / 286.1 MB Notification: Performance of matching and sorting (n=22): time 0.001326/0.178, allocations: 0.5216 MB / 359 MB, free: 3.574 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.195e-05/0.1781, allocations: 102.8 kB / 359.1 MB, free: 3.449 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002596/0.1784, allocations: 248.9 kB / 359.4 MB, free: 3.199 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.649e-05/0.1784, allocations: 29.7 kB / 359.4 MB, free: 3.164 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001285/0.1786, allocations: 164.5 kB / 359.6 MB, free: 3 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.304e-05/0.1786, allocations: 74.98 kB / 359.6 MB, free: 2.926 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.154e-05/0.1787, allocations: 0 / 359.6 MB, free: 2.926 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.1788, allocations: 342.8 kB / 360 MB, free: 2.582 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001637/0.179, allocations: 71.97 kB / 360 MB, free: 2.512 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001789/0.1791, allocations: 116.5 kB / 360.1 MB, free: 2.379 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001733/0.1793, allocations: 89.17 kB / 360.2 MB, free: 2.293 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.012e-06/0.1793, allocations: 3.953 kB / 360.2 MB, free: 2.289 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004889/0.1798, allocations: 296.7 kB / 360.5 MB, free: 1.992 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/0.1799, allocations: 4 kB / 360.5 MB, free: 1.988 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.1799, allocations: 0 / 360.5 MB, free: 1.988 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003365/0.1802, allocations: 96.86 kB / 360.6 MB, free: 1.891 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001541/0.1804, allocations: 31.92 kB / 360.7 MB, free: 1.859 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002213/0.1826, allocations: 1.956 MB / 362.6 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002251/0.1828, allocations: 43.83 kB / 362.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.713e-05/0.1829, allocations: 4 kB / 362.7 MB, free: 15.72 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.idealTriac.idealThyristor.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.000172/0.183, allocations: 145.9 kB / 362.8 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.326e-05/0.1831, allocations: 27.66 kB / 362.8 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.187e-05/0.1832, allocations: 38.17 kB / 362.9 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-06/0.1832, allocations: 0 / 362.9 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.1832, allocations: 0 / 362.9 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.1832, allocations: 0 / 362.9 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003617/0.1836, allocations: 361.2 kB / 363.2 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.1836, allocations: 4 kB / 363.2 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001275/0.1837, allocations: 23.98 kB / 363.2 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002546/0.184, allocations: 80.81 kB / 363.3 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.277e-05/0.184, allocations: 7.984 kB / 363.3 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002327/0.1863, allocations: 1.979 MB / 365.3 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.1864, allocations: 0 / 365.3 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007435/0.1871, allocations: 412.2 kB / 365.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001379/0.1873, allocations: 124.8 kB / 365.8 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.112e-05/0.1873, allocations: 8.125 kB / 365.8 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001755/0.1875, allocations: 19.98 kB / 365.9 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001146/0.1876, allocations: 39.88 kB / 365.9 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.359e-05/0.1876, allocations: 4 kB / 365.9 MB, free: 12.24 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001728/0.1878, allocations: 176.5 kB / 366.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1878, allocations: 0 / 366.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004493/0.1883, allocations: 95.84 kB / 366.2 MB, free: 11.97 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.idealThyristor.off,idealTriac.idealThyristor1.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001317/0.1884, allocations: 99.25 kB / 366.3 MB, free: 11.87 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007033/0.1891, allocations: 366.4 kB / 366.6 MB, free: 11.5 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.1892, allocations: 4.125 kB / 366.6 MB, free: 11.49 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004022/0.1896, allocations: 262.5 kB / 366.9 MB, free: 11.22 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003295/0.1899, allocations: 56.73 kB / 366.9 MB, free: 11.17 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001193/0.1911, allocations: 0.7242 MB / 367.7 MB, free: 10.42 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003465/0.1915, allocations: 0.7716 MB / 368.4 MB, free: 9.625 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001173/0.1916, allocations: 18.3 kB / 368.5 MB, free: 9.605 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.333e-05/0.1916, allocations: 15.44 kB / 368.5 MB, free: 9.59 MB / 302.1 MB Notification: Performance of SimCode: time 9.42e-07/0.1917, allocations: 4 kB / 368.5 MB, free: 9.586 MB / 302.1 MB Notification: Performance of Templates: time 0.008749/0.2004, allocations: 4.293 MB / 372.8 MB, free: 5.355 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) 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","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches