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.0008247/0.0008247, allocations: 93.91 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009984/0.0009985, allocations: 191.8 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.473/1.473, allocations: 227.7 MB / 246.4 MB, free: 11.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002446/0.0002447, allocations: 4 kB / 307.1 MB, free: 1.168 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1128, allocations: 51.52 MB / 358.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.003715/0.1166, allocations: 2.506 MB / 361.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001868/0.1185, allocations: 0.7638 MB / 361.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003647/0.1189, allocations: 4 kB / 361.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000193/0.1191, allocations: 43.69 kB / 361.9 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002746/0.1194, allocations: 79.31 kB / 362 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003592/0.1197, allocations: 75.86 kB / 362.1 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000474/0.1202, allocations: 370.4 kB / 362.5 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002505/0.1205, allocations: 101.8 kB / 362.6 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002957/0.1208, allocations: 131.5 kB / 362.7 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002703/0.1211, allocations: 135.4 kB / 362.8 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.954e-05/0.1211, allocations: 16 kB / 362.8 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000102/0.1212, allocations: 16 kB / 362.8 MB, free: 9.395 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.067e-05/0.1213, allocations: 55.77 kB / 362.9 MB, free: 9.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001187/0.1214, allocations: 89.52 kB / 363 MB, free: 9.246 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003882/0.1218, allocations: 323.3 kB / 363.3 MB, free: 8.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.1218, allocations: 0 / 363.3 MB, free: 8.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.296e-06/0.1219, allocations: 0 / 363.3 MB, free: 8.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.273e-05/0.1219, allocations: 0 / 363.3 MB, free: 8.93 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.001201/0.1231, allocations: 0.5699 MB / 363.9 MB, free: 8.309 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/0.1231, allocations: 8.031 kB / 363.9 MB, free: 8.301 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002329/0.1234, allocations: 47.52 kB / 363.9 MB, free: 8.254 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003762/0.1238, allocations: 275.6 kB / 364.2 MB, free: 7.941 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.606e-05/0.1238, allocations: 28.5 kB / 364.2 MB, free: 7.914 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.101e-05/0.1239, allocations: 24 kB / 364.3 MB, free: 7.891 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005637/0.1244, allocations: 288.5 kB / 364.5 MB, free: 7.598 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.1244, allocations: 0 / 364.5 MB, free: 7.598 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.071e-05/0.1245, allocations: 12 kB / 364.5 MB, free: 7.586 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.277e-05/0.1245, allocations: 4 kB / 364.5 MB, free: 7.582 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004377/0.1249, allocations: 218 kB / 364.8 MB, free: 7.363 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001819/0.1268, allocations: 1.156 MB / 365.9 MB, free: 6.129 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005106/0.1273, allocations: 223.2 kB / 366.1 MB, free: 5.902 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000312/0.1276, allocations: 141.9 kB / 366.3 MB, free: 5.762 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.448e-05/0.1277, allocations: 192 / 366.3 MB, free: 5.762 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003177/0.128, allocations: 182.8 kB / 366.5 MB, free: 5.562 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.213e-06/0.128, allocations: 0 / 366.5 MB, free: 5.562 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001369/0.1294, allocations: 0.515 MB / 367 MB, free: 5.02 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.751e-05/0.1295, allocations: 136.5 kB / 367.1 MB, free: 4.855 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000256/0.1297, allocations: 244.9 kB / 367.3 MB, free: 4.605 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.536e-05/0.1298, allocations: 29.7 kB / 367.4 MB, free: 4.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001149/0.1299, allocations: 168.4 kB / 367.5 MB, free: 4.402 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.173e-05/0.1299, allocations: 74.94 kB / 367.6 MB, free: 4.328 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.364e-05/0.13, allocations: 4 kB / 367.6 MB, free: 4.324 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.1301, allocations: 334.8 kB / 367.9 MB, free: 3.988 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001604/0.1303, allocations: 75.97 kB / 368 MB, free: 3.914 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001815/0.1305, allocations: 129.1 kB / 368.1 MB, free: 3.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001759/0.1306, allocations: 85.09 kB / 368.2 MB, free: 3.688 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.1307, allocations: 0 / 368.2 MB, free: 3.688 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005056/0.1312, allocations: 294.7 kB / 368.5 MB, free: 3.391 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.1312, allocations: 4 kB / 368.5 MB, free: 3.387 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.1312, allocations: 3.938 kB / 368.5 MB, free: 3.383 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003607/0.1316, allocations: 104.8 kB / 368.6 MB, free: 3.277 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001365/0.1317, allocations: 31.92 kB / 368.7 MB, free: 3.246 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002116/0.1338, allocations: 1.932 MB / 370.6 MB, free: 1.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002126/0.1341, allocations: 39.83 kB / 370.6 MB, free: 1.141 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.973e-05/0.1341, allocations: 8 kB / 370.6 MB, free: 1.133 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,$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.0001559/0.1343, allocations: 153.7 kB / 370.8 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.819e-05/0.1343, allocations: 23.72 kB / 370.8 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.967e-05/0.1344, allocations: 30.17 kB / 370.8 MB, free: 0.918 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.1344, allocations: 4.109 kB / 370.8 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.395e-06/0.1344, allocations: 3.938 kB / 370.8 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.1344, allocations: 0 / 370.8 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009536/0.1354, allocations: 0.7798 MB / 371.6 MB, free: 72 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.1354, allocations: 0 / 371.6 MB, free: 72 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001115/0.1355, allocations: 19.98 kB / 371.6 MB, free: 52 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2072/0.3427, allocations: 83.56 kB / 371.7 MB, free: 19.74 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.187e-05/0.3428, allocations: 6.562 kB / 371.7 MB, free: 19.74 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002327/0.3451, allocations: 1.927 MB / 373.7 MB, free: 18.43 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.3451, allocations: 1.156 kB / 373.7 MB, free: 18.43 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007221/0.3459, allocations: 466.6 kB / 374.1 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001149/0.346, allocations: 119.4 kB / 374.2 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.02e-05/0.346, allocations: 8.438 kB / 374.2 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002012/0.3463, allocations: 25.78 kB / 374.3 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001255/0.3464, allocations: 34.89 kB / 374.3 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.825e-05/0.3464, allocations: 9.703 kB / 374.3 MB, free: 18.19 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001816/0.3466, allocations: 179.9 kB / 374.5 MB, free: 18.11 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3466, allocations: 0 / 374.5 MB, free: 18.11 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005113/0.3471, allocations: 97.23 kB / 374.6 MB, free: 18.11 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 (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.0001274/0.3473, allocations: 109.9 kB / 374.7 MB, free: 18.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007191/0.348, allocations: 348.6 kB / 375 MB, free: 17.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.348, allocations: 1.688 kB / 375 MB, free: 17.91 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004056/0.3484, allocations: 268.4 kB / 375.3 MB, free: 17.76 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004384/0.3489, allocations: 56.44 kB / 375.3 MB, free: 17.74 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00116/0.35, allocations: 0.7205 MB / 376.1 MB, free: 17.33 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002479/0.3503, allocations: 0.7653 MB / 376.8 MB, free: 16.63 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001131/0.3504, allocations: 22.22 kB / 376.9 MB, free: 16.62 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.188e-05/0.3505, allocations: 18.41 kB / 376.9 MB, free: 16.62 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3505, allocations: 0.5 kB / 376.9 MB, free: 16.62 MB / 302.1 MB Notification: Performance of Templates: time 0.009357/0.3598, allocations: 4.283 MB / 381.2 MB, free: 16.33 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches