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.001842/0.001842, allocations: 112 kB / 17.68 MB, free: 5.332 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.002146/0.002146, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.601/1.601, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001134, allocations: 51.48 kB / 302.1 MB, free: 5.16 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1373/0.1385, allocations: 49.44 MB / 351.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.006268/0.1448, allocations: 2.919 MB / 354.4 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002048/0.1469, allocations: 0.7246 MB / 355.1 MB, free: 28 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000273/0.1472, allocations: 7.938 kB / 355.1 MB, free: 20 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000335/0.1476, allocations: 47.61 kB / 355.2 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002867/0.1479, allocations: 95.12 kB / 355.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005121/0.1485, allocations: 107.8 kB / 355.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005897/0.1491, allocations: 410.2 kB / 355.8 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003948/0.1495, allocations: 131.2 kB / 355.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003217/0.1498, allocations: 155.4 kB / 356.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00031/0.1501, allocations: 163.3 kB / 356.2 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.37e-05/0.1502, allocations: 36 kB / 356.3 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.866e-05/0.1503, allocations: 39.94 kB / 356.3 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.851e-05/0.1504, allocations: 75.77 kB / 356.4 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000241/0.1507, allocations: 175.1 kB / 356.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006568/0.1513, allocations: 438.5 kB / 357 MB, free: 14.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.018e-05/0.1513, allocations: 3.938 kB / 357 MB, free: 14.17 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.206e-06/0.1514, allocations: 0 / 357 MB, free: 14.17 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.275e-05/0.1514, allocations: 0 / 357 MB, free: 14.17 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.001454/0.1528, allocations: 0.6167 MB / 357.6 MB, free: 13.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.542e-05/0.1529, allocations: 12.03 kB / 357.6 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001116/0.153, allocations: 32.56 kB / 357.6 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006745/0.1537, allocations: 287.6 kB / 357.9 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.132e-05/0.1538, allocations: 20.88 kB / 357.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.886e-05/0.1538, allocations: 24.38 kB / 358 MB, free: 13.1 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006686/0.1545, allocations: 292.9 kB / 358.3 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.128e-05/0.1545, allocations: 3.984 kB / 358.3 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.561e-05/0.1546, allocations: 8 kB / 358.3 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.218e-05/0.1546, allocations: 8 kB / 358.3 MB, free: 12.78 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004065/0.155, allocations: 202.1 kB / 358.5 MB, free: 12.58 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001815/0.1568, allocations: 1.148 MB / 359.6 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005298/0.1574, allocations: 210.6 kB / 359.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003745/0.1578, allocations: 148.8 kB / 360 MB, free: 10.99 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.344e-05/0.1578, allocations: 4 kB / 360 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003658/0.1582, allocations: 169.5 kB / 360.1 MB, free: 10.8 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 2.204e-06/0.1582, allocations: 0 / 360.1 MB, free: 10.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001651/0.1599, allocations: 0.5146 MB / 360.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001322/0.16, allocations: 136.5 kB / 360.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003076/0.1603, allocations: 240.9 kB / 361 MB, free: 9.848 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.522e-05/0.1604, allocations: 37.73 kB / 361.1 MB, free: 9.805 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001333/0.1605, allocations: 164.5 kB / 361.2 MB, free: 9.641 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.209e-05/0.1606, allocations: 74.98 kB / 361.3 MB, free: 9.566 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.005e-05/0.1607, allocations: 45.7 kB / 361.3 MB, free: 9.516 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.1608, allocations: 342.8 kB / 361.7 MB, free: 9.172 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001522/0.161, allocations: 67.97 kB / 361.7 MB, free: 9.105 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002079/0.1612, allocations: 129.6 kB / 361.9 MB, free: 8.961 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002861/0.1615, allocations: 167.3 kB / 362 MB, free: 8.785 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.1615, allocations: 0 / 362 MB, free: 8.785 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000514/0.162, allocations: 301.9 kB / 362.3 MB, free: 8.48 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.452e-05/0.1621, allocations: 7.984 kB / 362.3 MB, free: 8.473 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.1621, allocations: 0 / 362.3 MB, free: 8.473 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003917/0.1625, allocations: 84.81 kB / 362.4 MB, free: 8.387 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001421/0.1627, allocations: 31.92 kB / 362.4 MB, free: 8.355 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002558/0.1652, allocations: 2.146 MB / 364.6 MB, free: 6.066 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002374/0.1655, allocations: 27.83 kB / 364.6 MB, free: 6.039 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.985e-05/0.1655, allocations: 8 kB / 364.6 MB, free: 6.031 MB / 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.000238/0.1657, allocations: 147 kB / 364.8 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.962e-05/0.1658, allocations: 35.64 kB / 364.8 MB, free: 5.844 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.002e-05/0.1659, allocations: 34.19 kB / 364.8 MB, free: 5.812 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.1659, allocations: 4 kB / 364.8 MB, free: 5.809 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.1659, allocations: 0 / 364.8 MB, free: 5.809 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.1659, allocations: 3.984 kB / 364.8 MB, free: 5.805 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001009/0.1669, allocations: 0.7662 MB / 365.6 MB, free: 4.977 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.1669, allocations: 0 / 365.6 MB, free: 4.977 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001129/0.1671, allocations: 19.98 kB / 365.6 MB, free: 4.957 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002622/0.1673, allocations: 96.77 kB / 365.7 MB, free: 4.859 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.244e-05/0.1674, allocations: 8 kB / 365.7 MB, free: 4.852 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002305/0.1697, allocations: 2.139 MB / 367.9 MB, free: 2.574 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.1697, allocations: 0 / 367.9 MB, free: 2.574 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006604/0.1704, allocations: 459.8 kB / 368.3 MB, free: 2.105 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001299/0.1705, allocations: 120.8 kB / 368.4 MB, free: 1.969 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.735e-05/0.1705, allocations: 8 kB / 368.4 MB, free: 1.961 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002072/0.1708, allocations: 15.98 kB / 368.5 MB, free: 1.945 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001172/0.1709, allocations: 40.02 kB / 368.5 MB, free: 1.906 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.457e-05/0.1709, allocations: 4 kB / 368.5 MB, free: 1.902 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000175/0.1711, allocations: 172.5 kB / 368.7 MB, free: 1.734 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1711, allocations: 0 / 368.7 MB, free: 1.734 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000508/0.1716, allocations: 103.7 kB / 368.8 MB, free: 1.633 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.000171/0.1718, allocations: 107.2 kB / 368.9 MB, free: 1.52 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008183/0.1726, allocations: 370.3 kB / 369.2 MB, free: 1.145 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1726, allocations: 0 / 369.2 MB, free: 1.145 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004068/0.173, allocations: 261.7 kB / 369.5 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004477/0.1735, allocations: 60.86 kB / 369.6 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001331/0.1749, allocations: 0.5902 MB / 370.1 MB, free: 204 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2469/0.4218, allocations: 0.7603 MB / 370.9 MB, free: 24.59 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001932/0.422, allocations: 20.47 kB / 370.9 MB, free: 24.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.179e-05/0.4221, allocations: 19.92 kB / 370.9 MB, free: 24.58 MB / 302.1 MB Notification: Performance of SimCode: time 1.543e-06/0.4221, allocations: 0.5625 kB / 370.9 MB, free: 24.58 MB / 302.1 MB Notification: Performance of Templates: time 0.01401/0.4361, allocations: 4.857 MB / 375.8 MB, free: 24.46 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches