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.001755/0.001755, allocations: 101 kB / 17.16 MB, free: 6.094 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.002492/0.002492, allocations: 198.9 kB / 18.08 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.418/2.418, allocations: 222.9 MB / 241.7 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001569/0.001569, allocations: 46.59 kB / 300.6 MB, free: 6.246 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1114, allocations: 49.45 MB / 350.1 MB, free: 4.789 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.005764/0.1172, allocations: 2.951 MB / 353 MB, free: 1.816 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002142/0.1194, allocations: 0.7207 MB / 353.7 MB, free: 1.09 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004281/0.1199, allocations: 8 kB / 353.7 MB, free: 1.082 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003443/0.1202, allocations: 35.69 kB / 353.8 MB, free: 1.047 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005319/0.1208, allocations: 79.31 kB / 353.9 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000571/0.1214, allocations: 91.92 kB / 353.9 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008378/0.1223, allocations: 382.3 kB / 354.3 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004183/0.1227, allocations: 115.9 kB / 354.4 MB, free: 396 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000427/0.1232, allocations: 143.4 kB / 354.6 MB, free: 252 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004225/0.1236, allocations: 151.3 kB / 354.7 MB, free: 100 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001002/0.1238, allocations: 20 kB / 354.7 MB, free: 80 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001233/0.1239, allocations: 20 kB / 354.8 MB, free: 60 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001082/0.124, allocations: 55.77 kB / 354.8 MB, free: 4 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003665/0.1244, allocations: 159.2 kB / 355 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005369/0.125, allocations: 331.4 kB / 355.3 MB, free: 15.52 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.117e-06/0.125, allocations: 4 kB / 355.3 MB, free: 15.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.125, allocations: 0 / 355.3 MB, free: 15.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.026e-05/0.125, allocations: 0 / 355.3 MB, free: 15.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.001982/0.127, allocations: 0.6168 MB / 355.9 MB, free: 14.85 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.561e-05/0.1271, allocations: 12.03 kB / 355.9 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001632/0.1273, allocations: 32.56 kB / 356 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006512/0.128, allocations: 287.5 kB / 356.2 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.786e-05/0.128, allocations: 24.86 kB / 356.3 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.159e-05/0.1281, allocations: 24.38 kB / 356.3 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00096/0.1291, allocations: 288.9 kB / 356.6 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.683e-05/0.1291, allocations: 0 / 356.6 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.46e-05/0.1292, allocations: 12 kB / 356.6 MB, free: 14.13 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.781e-05/0.1292, allocations: 8 kB / 356.6 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008134/0.1301, allocations: 206.1 kB / 356.8 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003134/0.1332, allocations: 1.148 MB / 357.9 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000934/0.1342, allocations: 218.6 kB / 358.1 MB, free: 12.47 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005453/0.1347, allocations: 144.8 kB / 358.3 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.189e-05/0.1348, allocations: 0 / 358.3 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006391/0.1355, allocations: 177.9 kB / 358.5 MB, free: 12.13 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 2.835e-06/0.1355, allocations: 0 / 358.5 MB, free: 12.13 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.002583/0.1381, allocations: 0.5107 MB / 359 MB, free: 11.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001362/0.1382, allocations: 132.5 kB / 359.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004886/0.1387, allocations: 249 kB / 359.3 MB, free: 11.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.208e-05/0.1388, allocations: 33.7 kB / 359.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001937/0.139, allocations: 164.4 kB / 359.5 MB, free: 10.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001036/0.1391, allocations: 74.98 kB / 359.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001529/0.1393, allocations: 53.64 kB / 359.7 MB, free: 10.85 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.1395, allocations: 330.8 kB / 360 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002762/0.1398, allocations: 71.97 kB / 360.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003552/0.1402, allocations: 129.1 kB / 360.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005389/0.1407, allocations: 163.4 kB / 360.3 MB, free: 10.13 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.326e-06/0.1407, allocations: 4 kB / 360.3 MB, free: 10.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009881/0.1417, allocations: 297.9 kB / 360.6 MB, free: 9.824 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.812e-05/0.1418, allocations: 4 kB / 360.6 MB, free: 9.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/0.1418, allocations: 4 kB / 360.6 MB, free: 9.816 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006249/0.1425, allocations: 88.8 kB / 360.7 MB, free: 9.727 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002409/0.1427, allocations: 31.92 kB / 360.8 MB, free: 9.695 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003777/0.1465, allocations: 1.959 MB / 362.7 MB, free: 7.602 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004456/0.147, allocations: 27.83 kB / 362.7 MB, free: 7.574 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.566e-05/0.147, allocations: 4 kB / 362.8 MB, free: 7.57 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.000325/0.1474, allocations: 145.8 kB / 362.9 MB, free: 7.418 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.1475, allocations: 23.72 kB / 362.9 MB, free: 7.395 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001139/0.1476, allocations: 38.19 kB / 363 MB, free: 7.359 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.213e-06/0.1476, allocations: 3.938 kB / 363 MB, free: 7.355 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.836e-06/0.1477, allocations: 7.984 kB / 363 MB, free: 7.348 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.1477, allocations: 0 / 363 MB, free: 7.348 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00188/0.1496, allocations: 0.7582 MB / 363.7 MB, free: 6.527 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.486e-06/0.1496, allocations: 3.984 kB / 363.7 MB, free: 6.523 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002054/0.1498, allocations: 23.94 kB / 363.8 MB, free: 6.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005049/0.1503, allocations: 92.98 kB / 363.8 MB, free: 6.406 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.467e-05/0.1504, allocations: 4 kB / 363.8 MB, free: 6.402 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003704/0.1541, allocations: 1.946 MB / 365.8 MB, free: 4.324 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/0.1541, allocations: 4 kB / 365.8 MB, free: 4.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001233/0.1554, allocations: 454.9 kB / 366.2 MB, free: 3.855 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000255/0.1557, allocations: 116.8 kB / 366.4 MB, free: 3.723 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.248e-05/0.1558, allocations: 8 kB / 366.4 MB, free: 3.715 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004156/0.1562, allocations: 27.91 kB / 366.4 MB, free: 3.688 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001678/0.1564, allocations: 35.88 kB / 366.4 MB, free: 3.652 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.998e-05/0.1564, allocations: 8.062 kB / 366.4 MB, free: 3.645 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000345/0.1568, allocations: 180.5 kB / 366.6 MB, free: 3.469 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.1568, allocations: 0 / 366.6 MB, free: 3.469 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009281/0.1578, allocations: 91.78 kB / 366.7 MB, free: 3.379 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.0002479/0.158, allocations: 103.2 kB / 366.8 MB, free: 3.27 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001207/0.1592, allocations: 354.3 kB / 367.1 MB, free: 2.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/0.1593, allocations: 4 kB / 367.2 MB, free: 2.906 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007392/0.16, allocations: 258.6 kB / 367.4 MB, free: 2.641 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008405/0.1609, allocations: 52.59 kB / 367.5 MB, free: 2.59 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002359/0.1633, allocations: 0.7342 MB / 368.2 MB, free: 1.824 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005546/0.1638, allocations: 0.7639 MB / 369 MB, free: 1.035 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001027/0.164, allocations: 23.38 kB / 369 MB, free: 1.012 MB / 302.1 MB Notification: Performance of SimCode: time 6.21e-07/0.164, allocations: 0 / 369 MB, free: 1.012 MB / 302.1 MB Notification: Performance of Templates: time 0.1928/0.3568, allocations: 4.634 MB / 373.6 MB, free: 25.28 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/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