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.0009039/0.0009041, allocations: 95.25 kB / 16.94 MB, free: 6.441 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.0009664/0.0009666, allocations: 183.5 kB / 17.83 MB, free: 6.008 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.805/1.805, allocations: 205.4 MB / 224 MB, free: 13.18 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.0005805/0.0005806, allocations: 11.28 kB / 280.7 MB, free: 3.766 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.1306, allocations: 47.58 MB / 328.3 MB, free: 4.109 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.00366/0.1344, allocations: 2.319 MB / 330.6 MB, free: 1.773 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001668/0.1361, allocations: 0.761 MB / 331.4 MB, free: 1.004 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002072/0.1363, allocations: 4 kB / 331.4 MB, free: 1 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 8.996e-05/0.1364, allocations: 31.75 kB / 331.4 MB, free: 0.9688 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003039/0.1368, allocations: 123.6 kB / 331.6 MB, free: 0.8477 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003454/0.1371, allocations: 63.88 kB / 331.6 MB, free: 0.7852 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004459/0.1376, allocations: 271.4 kB / 331.9 MB, free: 0.5195 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002545/0.1378, allocations: 93.84 kB / 332 MB, free: 440 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002178/0.1381, allocations: 123.5 kB / 332.1 MB, free: 316 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002032/0.1383, allocations: 139.4 kB / 332.2 MB, free: 176 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.707e-05/0.1383, allocations: 16 kB / 332.2 MB, free: 160 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.479e-05/0.1384, allocations: 16 kB / 332.3 MB, free: 144 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.773e-05/0.1384, allocations: 43.83 kB / 332.3 MB, free: 100 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.478e-05/0.1385, allocations: 89.45 kB / 332.4 MB, free: 4 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003722/0.1389, allocations: 319.3 kB / 332.7 MB, free: 15.69 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1389, allocations: 0 / 332.7 MB, free: 15.69 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.139, allocations: 4 kB / 332.7 MB, free: 15.69 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.139, allocations: 0 / 332.7 MB, free: 15.69 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.001077/0.14, allocations: 0.5699 MB / 333.3 MB, free: 15.07 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.906e-05/0.1401, allocations: 12.02 kB / 333.3 MB, free: 15.05 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.19e-05/0.1402, allocations: 39.62 kB / 333.3 MB, free: 15.02 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003996/0.1406, allocations: 266.5 kB / 333.6 MB, free: 14.71 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.73e-05/0.1407, allocations: 24.52 kB / 333.6 MB, free: 14.69 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.92e-05/0.1407, allocations: 31.88 kB / 333.6 MB, free: 14.66 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005399/0.1413, allocations: 280.5 kB / 333.9 MB, free: 14.37 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.828e-05/0.1413, allocations: 0 / 333.9 MB, free: 14.37 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.823e-05/0.1414, allocations: 12 kB / 333.9 MB, free: 14.36 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.12e-05/0.1414, allocations: 12 kB / 333.9 MB, free: 14.34 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004146/0.1418, allocations: 206.1 kB / 334.1 MB, free: 14.14 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001783/0.1436, allocations: 1.164 MB / 335.3 MB, free: 12.9 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005183/0.1441, allocations: 227.2 kB / 335.5 MB, free: 12.67 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.535e-05/0.1442, allocations: 8.172 kB / 335.5 MB, free: 12.66 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003537/0.1445, allocations: 163.7 kB / 335.7 MB, free: 12.48 MB / 286.1 MB Notification: Performance of pre-optimization done (n=22): time 1.723e-06/0.1445, allocations: 0 / 335.7 MB, free: 12.48 MB / 286.1 MB Notification: Performance of matching and sorting (n=22): time 0.001379/0.1459, allocations: 0.5079 MB / 336.2 MB, free: 11.95 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.259e-05/0.146, allocations: 110.8 kB / 336.3 MB, free: 11.82 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002736/0.1463, allocations: 241 kB / 336.6 MB, free: 11.57 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.053e-05/0.1464, allocations: 37.69 kB / 336.6 MB, free: 11.53 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000127/0.1465, allocations: 164.5 kB / 336.7 MB, free: 11.36 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.504e-05/0.1466, allocations: 71 kB / 336.8 MB, free: 11.29 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.335e-05/0.1466, allocations: 4 kB / 336.8 MB, free: 11.29 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.1467, allocations: 334.8 kB / 337.1 MB, free: 10.95 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001491/0.1469, allocations: 71.97 kB / 337.2 MB, free: 10.88 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001934/0.1471, allocations: 124.4 kB / 337.3 MB, free: 10.75 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001666/0.1473, allocations: 85.14 kB / 337.4 MB, free: 10.66 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.1473, allocations: 0 / 337.4 MB, free: 10.66 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004917/0.1478, allocations: 300.1 kB / 337.7 MB, free: 10.36 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.564e-05/0.1478, allocations: 4 kB / 337.7 MB, free: 10.36 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.1478, allocations: 0 / 337.7 MB, free: 10.36 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003521/0.1482, allocations: 92.73 kB / 337.8 MB, free: 10.27 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001453/0.1483, allocations: 31.92 kB / 337.8 MB, free: 10.23 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002199/0.1505, allocations: 1.971 MB / 339.8 MB, free: 8.129 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002186/0.1508, allocations: 31.83 kB / 339.8 MB, free: 8.098 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.047e-05/0.1508, allocations: 8 kB / 339.9 MB, free: 8.09 MB / 286.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.0001979/0.151, allocations: 145.8 kB / 340 MB, free: 7.938 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.368e-05/0.1511, allocations: 31.61 kB / 340 MB, free: 7.906 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.393e-05/0.1511, allocations: 30.17 kB / 340.1 MB, free: 7.875 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.1511, allocations: 8.062 kB / 340.1 MB, free: 7.867 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.494e-06/0.1512, allocations: 0 / 340.1 MB, free: 7.867 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.174e-06/0.1512, allocations: 112 / 340.1 MB, free: 7.867 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003976/0.1516, allocations: 361.2 kB / 340.4 MB, free: 7.465 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.1516, allocations: 0 / 340.4 MB, free: 7.465 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000124/0.1517, allocations: 23.98 kB / 340.4 MB, free: 7.441 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002493/0.152, allocations: 88.75 kB / 340.5 MB, free: 7.352 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.152, allocations: 4 kB / 340.5 MB, free: 7.348 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002206/0.1542, allocations: 1.963 MB / 342.5 MB, free: 5.254 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.576e-06/0.1542, allocations: 4.031 kB / 342.5 MB, free: 5.25 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007276/0.155, allocations: 414.2 kB / 342.9 MB, free: 4.824 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001313/0.1551, allocations: 124.8 kB / 343 MB, free: 4.684 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.561e-05/0.1552, allocations: 4 kB / 343 MB, free: 4.68 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000166/0.1553, allocations: 27.94 kB / 343.1 MB, free: 4.652 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001094/0.1554, allocations: 36 kB / 343.1 MB, free: 4.617 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.446e-05/0.1555, allocations: 12 kB / 343.1 MB, free: 4.605 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001735/0.1556, allocations: 172.5 kB / 343.3 MB, free: 4.438 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1557, allocations: 3.938 kB / 343.3 MB, free: 4.434 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004294/0.1561, allocations: 87.84 kB / 343.4 MB, free: 4.348 MB / 286.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.000155/0.1563, allocations: 111.2 kB / 343.5 MB, free: 4.227 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006564/0.1569, allocations: 362.4 kB / 343.8 MB, free: 3.859 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.1569, allocations: 4 kB / 343.8 MB, free: 3.855 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000386/0.1573, allocations: 258.5 kB / 344.1 MB, free: 3.59 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003109/0.1576, allocations: 57.28 kB / 344.1 MB, free: 3.535 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001215/0.1589, allocations: 0.7153 MB / 344.8 MB, free: 2.797 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003577/0.1592, allocations: 0.779 MB / 345.6 MB, free: 1.992 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 9.608e-05/0.1593, allocations: 26.28 kB / 345.7 MB, free: 1.969 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.535e-05/0.1594, allocations: 15.44 kB / 345.7 MB, free: 1.953 MB / 286.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1594, allocations: 0 / 345.7 MB, free: 1.953 MB / 286.1 MB Notification: Performance of Templates: time 0.008095/0.1675, allocations: 4.3 MB / 350 MB, free: 13.66 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile Environment - environmentSimulation: (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 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches