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.001191/0.001192, allocations: 95.23 kB / 16.65 MB, free: 6.535 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.001582/0.001583, allocations: 175.4 kB / 17.56 MB, free: 6.18 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.628/1.628, allocations: 223.3 MB / 241.6 MB, free: 14.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003796/0.0003797, allocations: 11.94 kB / 301.4 MB, free: 5.883 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1308, allocations: 50.42 MB / 351.8 MB, free: 3.453 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.003085/0.1339, allocations: 2.584 MB / 354.4 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001162/0.1351, allocations: 0.709 MB / 355.1 MB, free: 140 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001353/0.1353, allocations: 8 kB / 355.1 MB, free: 132 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001515/0.1354, allocations: 39.69 kB / 355.2 MB, free: 92 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001705/0.1356, allocations: 79.31 kB / 355.3 MB, free: 12 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002715/0.1359, allocations: 84.02 kB / 355.3 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003819/0.1363, allocations: 394.2 kB / 355.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002229/0.1365, allocations: 107.9 kB / 355.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001686/0.1367, allocations: 127.5 kB / 356 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001836/0.1369, allocations: 139.3 kB / 356.1 MB, free: 15.17 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.732e-05/0.137, allocations: 16 kB / 356.1 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.025e-05/0.137, allocations: 16 kB / 356.1 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.045e-05/0.1371, allocations: 55.75 kB / 356.2 MB, free: 15.08 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001617/0.1372, allocations: 176.8 kB / 356.3 MB, free: 14.9 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003421/0.1376, allocations: 394.8 kB / 356.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1376, allocations: 0 / 356.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1376, allocations: 0 / 356.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.653e-06/0.1376, allocations: 0 / 356.7 MB, free: 14.52 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.0009781/0.1386, allocations: 0.574 MB / 357.3 MB, free: 13.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.1386, allocations: 12.03 kB / 357.3 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.573e-05/0.1387, allocations: 32.56 kB / 357.4 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003378/0.1391, allocations: 291.5 kB / 357.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.264e-05/0.1391, allocations: 20.94 kB / 357.7 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.053e-05/0.1392, allocations: 24.38 kB / 357.7 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005182/0.1397, allocations: 288.9 kB / 358 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.1397, allocations: 0 / 358 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.304e-05/0.1398, allocations: 16 kB / 358 MB, free: 13.17 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.656e-05/0.1398, allocations: 8 kB / 358 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000407/0.1402, allocations: 210.1 kB / 358.2 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00173/0.1419, allocations: 1.156 MB / 359.3 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005081/0.1425, allocations: 230.5 kB / 359.6 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003088/0.1428, allocations: 148.7 kB / 359.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.368e-05/0.1428, allocations: 3.938 kB / 359.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003236/0.1431, allocations: 173.5 kB / 359.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.513e-06/0.1431, allocations: 0 / 359.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.00146/0.1446, allocations: 0.5224 MB / 360.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.983e-05/0.1447, allocations: 136.5 kB / 360.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002511/0.145, allocations: 241 kB / 360.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.048e-05/0.145, allocations: 33.69 kB / 360.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001221/0.1451, allocations: 168.4 kB / 361 MB, free: 9.977 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.329e-05/0.1452, allocations: 71 kB / 361 MB, free: 9.906 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.138e-05/0.1453, allocations: 29.7 kB / 361.1 MB, free: 9.871 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.1454, allocations: 330.8 kB / 361.4 MB, free: 9.539 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001565/0.1456, allocations: 71.98 kB / 361.5 MB, free: 9.469 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001883/0.1458, allocations: 133 kB / 361.6 MB, free: 9.32 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003008/0.1461, allocations: 171.4 kB / 361.8 MB, free: 9.141 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.1461, allocations: 0 / 361.8 MB, free: 9.141 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004938/0.1466, allocations: 297.9 kB / 362.1 MB, free: 8.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.058e-05/0.1466, allocations: 8 kB / 362.1 MB, free: 8.832 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.1466, allocations: 0 / 362.1 MB, free: 8.832 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003544/0.147, allocations: 96.83 kB / 362.2 MB, free: 8.734 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001374/0.1471, allocations: 31.92 kB / 362.2 MB, free: 8.703 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002206/0.1493, allocations: 1.944 MB / 364.1 MB, free: 6.625 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002277/0.1496, allocations: 39.92 kB / 364.2 MB, free: 6.586 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.684e-05/0.1496, allocations: 4 kB / 364.2 MB, free: 6.582 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.0001772/0.1498, allocations: 146.8 kB / 364.3 MB, free: 6.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.236e-05/0.1498, allocations: 27.7 kB / 364.3 MB, free: 6.402 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.879e-05/0.1499, allocations: 30.19 kB / 364.4 MB, free: 6.375 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.209e-06/0.1499, allocations: 3.938 kB / 364.4 MB, free: 6.371 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.445e-06/0.1499, allocations: 3.938 kB / 364.4 MB, free: 6.367 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.15, allocations: 7.984 kB / 364.4 MB, free: 6.359 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009691/0.1509, allocations: 0.7703 MB / 365.2 MB, free: 5.527 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.1509, allocations: 3.938 kB / 365.2 MB, free: 5.523 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000115/0.1511, allocations: 27.92 kB / 365.2 MB, free: 5.496 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000265/0.1513, allocations: 92.83 kB / 365.3 MB, free: 5.402 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.579e-05/0.1514, allocations: 0 / 365.3 MB, free: 5.402 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002051/0.1534, allocations: 1.944 MB / 367.2 MB, free: 3.324 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1534, allocations: 0 / 367.2 MB, free: 3.324 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006818/0.1541, allocations: 467.2 kB / 367.7 MB, free: 2.848 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001143/0.1543, allocations: 116.8 kB / 367.8 MB, free: 2.715 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.701e-05/0.1543, allocations: 8 kB / 367.8 MB, free: 2.707 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002034/0.1545, allocations: 23.92 kB / 367.8 MB, free: 2.684 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001158/0.1546, allocations: 47.94 kB / 367.9 MB, free: 2.637 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.322e-05/0.1547, allocations: 4 kB / 367.9 MB, free: 2.633 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001786/0.1548, allocations: 180.5 kB / 368.1 MB, free: 2.457 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1548, allocations: 0 / 368.1 MB, free: 2.457 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004774/0.1553, allocations: 91.78 kB / 368.1 MB, free: 2.367 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.0001566/0.1555, allocations: 107.2 kB / 368.3 MB, free: 2.254 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007141/0.1562, allocations: 358.3 kB / 368.6 MB, free: 1.891 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.1562, allocations: 4 kB / 368.6 MB, free: 1.887 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004005/0.1567, allocations: 262.7 kB / 368.9 MB, free: 1.617 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004647/0.1571, allocations: 55.2 kB / 368.9 MB, free: 1.566 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001147/0.1583, allocations: 0.7366 MB / 369.7 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003218/0.1586, allocations: 0.7715 MB / 370.4 MB, free: 8 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.2187/0.3774, allocations: 18.67 kB / 370.4 MB, free: 23.5 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.491e-05/0.3775, allocations: 18.55 kB / 370.5 MB, free: 23.49 MB / 302.1 MB Notification: Performance of SimCode: time 1.202e-06/0.3775, allocations: 0 / 370.5 MB, free: 23.49 MB / 302.1 MB Notification: Performance of Templates: time 0.01224/0.3898, allocations: 4.405 MB / 374.9 MB, free: 23.36 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","/var/lib/jenkins/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