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.001043/0.001043, allocations: 96.47 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001135/0.001135, allocations: 208.2 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.492/1.492, allocations: 227.2 MB / 245.9 MB, free: 10.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003335/0.0003338, allocations: 8 kB / 306.6 MB, free: 1.391 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1254/0.1257, allocations: 51.49 MB / 358.1 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.002902/0.1287, allocations: 2.369 MB / 360.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001561/0.1303, allocations: 0.7562 MB / 361.2 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000269/0.1306, allocations: 4 kB / 361.2 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001205/0.1307, allocations: 31.75 kB / 361.2 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003866/0.1311, allocations: 123.6 kB / 361.3 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003696/0.1315, allocations: 67.84 kB / 361.4 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005053/0.132, allocations: 267.4 kB / 361.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002667/0.1323, allocations: 117.8 kB / 361.8 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000335/0.1326, allocations: 119.6 kB / 361.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002965/0.1329, allocations: 135.4 kB / 362 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.007e-05/0.133, allocations: 16 kB / 362.1 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.377e-05/0.1331, allocations: 16 kB / 362.1 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.758e-05/0.1332, allocations: 51.81 kB / 362.1 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.977e-05/0.1333, allocations: 89.52 kB / 362.2 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003794/0.1336, allocations: 315.3 kB / 362.5 MB, free: 9.418 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.1337, allocations: 0 / 362.5 MB, free: 9.418 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.928e-05/0.1337, allocations: 4 kB / 362.5 MB, free: 9.414 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.755e-05/0.1337, allocations: 3.938 kB / 362.5 MB, free: 9.41 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.00111/0.1348, allocations: 0.5777 MB / 363.1 MB, free: 8.781 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.638e-05/0.1349, allocations: 8.031 kB / 363.1 MB, free: 8.773 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002487/0.1351, allocations: 47.61 kB / 363.2 MB, free: 8.727 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003852/0.1355, allocations: 274.4 kB / 363.4 MB, free: 8.418 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.827e-05/0.1356, allocations: 20.56 kB / 363.4 MB, free: 8.398 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.175e-05/0.1356, allocations: 24 kB / 363.5 MB, free: 8.375 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005829/0.1362, allocations: 284.5 kB / 363.7 MB, free: 8.082 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.358e-05/0.1362, allocations: 0 / 363.7 MB, free: 8.082 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.484e-05/0.1363, allocations: 12 kB / 363.8 MB, free: 8.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.086e-05/0.1363, allocations: 8 kB / 363.8 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004264/0.1367, allocations: 206.1 kB / 364 MB, free: 7.859 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002027/0.1388, allocations: 1.168 MB / 365.1 MB, free: 6.613 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000551/0.1393, allocations: 207.3 kB / 365.3 MB, free: 6.402 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.575e-05/0.1394, allocations: 192 / 365.3 MB, free: 6.402 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003658/0.1397, allocations: 178.7 kB / 365.5 MB, free: 6.211 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 2.544e-06/0.1398, allocations: 0 / 365.5 MB, free: 6.211 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001522/0.1413, allocations: 0.5118 MB / 366 MB, free: 5.672 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.09e-05/0.1414, allocations: 106.8 kB / 366.1 MB, free: 5.543 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003351/0.1417, allocations: 245 kB / 366.4 MB, free: 5.297 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.545e-05/0.1418, allocations: 29.7 kB / 366.4 MB, free: 5.262 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001687/0.142, allocations: 180.3 kB / 366.6 MB, free: 5.082 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.32e-05/0.1421, allocations: 59.11 kB / 366.6 MB, free: 5.023 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.447e-05/0.1421, allocations: 4 kB / 366.6 MB, free: 5.02 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001823/0.1423, allocations: 334.8 kB / 367 MB, free: 4.684 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001733/0.1424, allocations: 79.97 kB / 367 MB, free: 4.605 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002192/0.1427, allocations: 124.4 kB / 367.2 MB, free: 4.465 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001853/0.1429, allocations: 73.17 kB / 367.2 MB, free: 4.395 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.003e-06/0.1429, allocations: 4.031 kB / 367.2 MB, free: 4.391 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006266/0.1435, allocations: 306.5 kB / 367.5 MB, free: 4.086 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.971e-05/0.1436, allocations: 4 kB / 367.5 MB, free: 4.082 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.1436, allocations: 3.938 kB / 367.5 MB, free: 4.078 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004244/0.144, allocations: 96.8 kB / 367.6 MB, free: 3.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000157/0.1442, allocations: 35.98 kB / 367.7 MB, free: 3.945 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002605/0.1468, allocations: 1.96 MB / 369.6 MB, free: 1.848 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000238/0.1471, allocations: 35.97 kB / 369.7 MB, free: 1.812 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.877e-05/0.1471, allocations: 7.938 kB / 369.7 MB, free: 1.805 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.0002323/0.1473, allocations: 150.1 kB / 369.8 MB, free: 1.648 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.819e-05/0.1474, allocations: 23.72 kB / 369.8 MB, free: 1.625 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.7e-05/0.1475, allocations: 34.12 kB / 369.9 MB, free: 1.59 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.1475, allocations: 4 kB / 369.9 MB, free: 1.586 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.1475, allocations: 0 / 369.9 MB, free: 1.586 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/0.1475, allocations: 3.984 kB / 369.9 MB, free: 1.582 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004753/0.148, allocations: 357.3 kB / 370.2 MB, free: 1.184 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.148, allocations: 0 / 370.2 MB, free: 1.184 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001345/0.1481, allocations: 23.98 kB / 370.3 MB, free: 1.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002921/0.1484, allocations: 89.02 kB / 370.3 MB, free: 1.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.102e-05/0.1485, allocations: 0 / 370.3 MB, free: 1.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2138/0.3622, allocations: 1.967 MB / 372.3 MB, free: 18.33 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.3623, allocations: 0 / 372.3 MB, free: 18.33 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008674/0.3632, allocations: 418.4 kB / 372.7 MB, free: 18.26 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001543/0.3633, allocations: 122.5 kB / 372.8 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.298e-05/0.3634, allocations: 5.656 kB / 372.8 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001984/0.3636, allocations: 22.08 kB / 372.9 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001377/0.3638, allocations: 40.59 kB / 372.9 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.166e-05/0.3638, allocations: 9.625 kB / 372.9 MB, free: 18.16 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001913/0.364, allocations: 177.7 kB / 373.1 MB, free: 18.09 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.364, allocations: 0 / 373.1 MB, free: 18.09 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005042/0.3645, allocations: 90.94 kB / 373.2 MB, free: 18.09 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.0001494/0.3647, allocations: 106 kB / 373.3 MB, free: 18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007675/0.3654, allocations: 356.3 kB / 373.6 MB, free: 17.88 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.3655, allocations: 0 / 373.6 MB, free: 17.88 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005078/0.366, allocations: 265 kB / 373.9 MB, free: 17.77 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003514/0.3663, allocations: 49.97 kB / 373.9 MB, free: 17.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001476/0.3678, allocations: 0.7326 MB / 374.7 MB, free: 17.42 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003503/0.3682, allocations: 0.7676 MB / 375.4 MB, free: 16.72 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001479/0.3683, allocations: 26.5 kB / 375.5 MB, free: 16.71 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.718e-05/0.3684, allocations: 17.89 kB / 375.5 MB, free: 16.71 MB / 302.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3684, allocations: 0 / 375.5 MB, free: 16.71 MB / 302.1 MB Notification: Performance of Templates: time 0.01225/0.3807, allocations: 4.301 MB / 379.8 MB, free: 16.44 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.0.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches