Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001266/0.001266, allocations: 108.4 kB / 18.36 MB, free: 4.762 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.001489/0.001489, allocations: 191 kB / 19.29 MB, free: 3.836 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.675/1.675, allocations: 205.1 MB / 225.2 MB, free: 12.27 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 55.92 kB / 282.1 MB, free: 2.465 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1224, allocations: 46.62 MB / 328.7 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.00459/0.127, allocations: 2.878 MB / 331.6 MB, free: 0.8672 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001367/0.1284, allocations: 0.776 MB / 332.4 MB, free: 84 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001406/0.1286, allocations: 8 kB / 332.4 MB, free: 76 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000173/0.1288, allocations: 47.5 kB / 332.4 MB, free: 28 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002009/0.129, allocations: 91.12 kB / 332.5 MB, free: 15.94 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002981/0.1293, allocations: 99.83 kB / 332.6 MB, free: 15.84 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004111/0.1297, allocations: 418.3 kB / 333 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002468/0.13, allocations: 123.2 kB / 333.1 MB, free: 15.31 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001935/0.1302, allocations: 155.4 kB / 333.3 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002388/0.1304, allocations: 167.2 kB / 333.5 MB, free: 14.99 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.315e-05/0.1305, allocations: 40 kB / 333.5 MB, free: 14.95 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.585e-05/0.1306, allocations: 36 kB / 333.5 MB, free: 14.92 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.924e-05/0.1307, allocations: 71.77 kB / 333.6 MB, free: 14.85 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001714/0.1308, allocations: 179.1 kB / 333.8 MB, free: 14.67 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004052/0.1313, allocations: 434.5 kB / 334.2 MB, free: 14.25 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.1313, allocations: 0 / 334.2 MB, free: 14.25 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.255e-06/0.1313, allocations: 0 / 334.2 MB, free: 14.25 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.085e-06/0.1313, allocations: 4 kB / 334.2 MB, free: 14.24 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.001043/0.1323, allocations: 0.6206 MB / 334.8 MB, free: 13.57 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/0.1324, allocations: 8.031 kB / 334.8 MB, free: 13.56 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.433e-05/0.1325, allocations: 40.56 kB / 334.9 MB, free: 13.52 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004268/0.1329, allocations: 291.5 kB / 335.2 MB, free: 13.2 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.14e-05/0.133, allocations: 20.94 kB / 335.2 MB, free: 13.18 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.202e-05/0.133, allocations: 24.38 kB / 335.2 MB, free: 13.16 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004867/0.1335, allocations: 288.9 kB / 335.5 MB, free: 12.86 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.1335, allocations: 0 / 335.5 MB, free: 12.86 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.711e-05/0.1336, allocations: 4 kB / 335.5 MB, free: 12.86 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.137e-06/0.1336, allocations: 12 kB / 335.5 MB, free: 12.85 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003932/0.134, allocations: 206.1 kB / 335.7 MB, free: 12.64 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001767/0.1358, allocations: 1.14 MB / 336.8 MB, free: 11.43 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005548/0.1363, allocations: 218.6 kB / 337.1 MB, free: 11.21 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003225/0.1367, allocations: 152.7 kB / 337.2 MB, free: 11.05 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.953e-05/0.1367, allocations: 7.938 kB / 337.2 MB, free: 11.05 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002894/0.137, allocations: 170.7 kB / 337.4 MB, free: 10.86 MB / 286.1 MB Notification: Performance of pre-optimization done (n=22): time 2.194e-06/0.137, allocations: 0 / 337.4 MB, free: 10.86 MB / 286.1 MB Notification: Performance of matching and sorting (n=22): time 0.00148/0.1385, allocations: 0.5146 MB / 337.9 MB, free: 10.31 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.394e-05/0.1386, allocations: 128.5 kB / 338 MB, free: 10.16 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002622/0.1389, allocations: 244.9 kB / 338.3 MB, free: 9.906 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.152e-05/0.1389, allocations: 37.69 kB / 338.3 MB, free: 9.863 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000118/0.1391, allocations: 164.4 kB / 338.5 MB, free: 9.699 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.903e-05/0.1391, allocations: 78.94 kB / 338.5 MB, free: 9.621 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.211e-05/0.1392, allocations: 45.7 kB / 338.6 MB, free: 9.57 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.1393, allocations: 334.8 kB / 338.9 MB, free: 9.234 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001464/0.1395, allocations: 71.97 kB / 339 MB, free: 9.164 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001723/0.1397, allocations: 121.1 kB / 339.1 MB, free: 9.027 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002752/0.14, allocations: 175.4 kB / 339.3 MB, free: 8.844 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.14, allocations: 0 / 339.3 MB, free: 8.844 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004879/0.1405, allocations: 290 kB / 339.6 MB, free: 8.551 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/0.1405, allocations: 8 kB / 339.6 MB, free: 8.543 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.1405, allocations: 0 / 339.6 MB, free: 8.543 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003543/0.1409, allocations: 92.89 kB / 339.7 MB, free: 8.449 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001329/0.141, allocations: 31.86 kB / 339.7 MB, free: 8.418 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002408/0.1434, allocations: 2.146 MB / 341.8 MB, free: 6.129 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002266/0.1437, allocations: 31.89 kB / 341.9 MB, free: 6.098 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.963e-05/0.1437, allocations: 4 kB / 341.9 MB, free: 6.094 MB / 286.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.0002171/0.1439, allocations: 150.5 kB / 342 MB, free: 5.938 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.248e-05/0.144, allocations: 27.66 kB / 342 MB, free: 5.91 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.822e-05/0.1441, allocations: 34.17 kB / 342.1 MB, free: 5.875 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.1441, allocations: 0 / 342.1 MB, free: 5.875 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.1441, allocations: 4 kB / 342.1 MB, free: 5.871 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-06/0.1441, allocations: 3.984 kB / 342.1 MB, free: 5.867 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00101/0.1451, allocations: 0.7766 MB / 342.9 MB, free: 5.027 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.1451, allocations: 0 / 342.9 MB, free: 5.027 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001098/0.1452, allocations: 19.98 kB / 342.9 MB, free: 5.008 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002381/0.1455, allocations: 84.8 kB / 343 MB, free: 4.922 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.993e-05/0.1455, allocations: 12 kB / 343 MB, free: 4.91 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002082/0.1476, allocations: 2.143 MB / 345.1 MB, free: 2.633 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.1476, allocations: 0 / 345.1 MB, free: 2.633 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006316/0.1483, allocations: 461.5 kB / 345.6 MB, free: 2.16 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001125/0.1484, allocations: 120.7 kB / 345.7 MB, free: 2.023 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.746e-05/0.1484, allocations: 8 kB / 345.7 MB, free: 2.016 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002012/0.1486, allocations: 15.98 kB / 345.7 MB, free: 2 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001059/0.1487, allocations: 31.95 kB / 345.7 MB, free: 1.969 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.546e-05/0.1488, allocations: 8 kB / 345.7 MB, free: 1.961 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.00017/0.1489, allocations: 172.5 kB / 345.9 MB, free: 1.793 MB / 286.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.1489, allocations: 0 / 345.9 MB, free: 1.793 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005212/0.1495, allocations: 99.75 kB / 346 MB, free: 1.695 MB / 286.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.0002232/0.1497, allocations: 108.2 kB / 346.1 MB, free: 1.578 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009237/0.1506, allocations: 358.3 kB / 346.5 MB, free: 1.215 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.676e-06/0.1507, allocations: 4 kB / 346.5 MB, free: 1.211 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004623/0.1511, allocations: 266.7 kB / 346.7 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004634/0.1516, allocations: 60.42 kB / 346.8 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001274/0.1529, allocations: 0.5986 MB / 347.4 MB, free: 256 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004089/0.1533, allocations: 0.7675 MB / 348.2 MB, free: 15.46 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.871e-05/0.1534, allocations: 22.3 kB / 348.2 MB, free: 15.44 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.185e-05/0.1535, allocations: 15.44 kB / 348.2 MB, free: 15.42 MB / 302.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1535, allocations: 0 / 348.2 MB, free: 15.42 MB / 302.1 MB Notification: Performance of Templates: time 0.009292/0.1628, allocations: 4.859 MB / 353.1 MB, free: 10.57 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches