Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001665/0.001665, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001904/0.001905, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.453/1.453, allocations: 227.7 MB / 247.7 MB, free: 10.35 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.003037/0.003037, allocations: 65.22 kB / 307.9 MB, free: 496 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1148, allocations: 50.52 MB / 358.4 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004466/0.1193, allocations: 2.94 MB / 361.4 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001445/0.1208, allocations: 0.7946 MB / 362.2 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001394/0.1209, allocations: 4 kB / 362.2 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001561/0.1211, allocations: 51.5 kB / 362.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002006/0.1213, allocations: 111 kB / 362.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000322/0.1216, allocations: 115.8 kB / 362.4 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004415/0.1221, allocations: 406.3 kB / 362.8 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002513/0.1223, allocations: 131.2 kB / 363 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002546/0.1226, allocations: 159.4 kB / 363.1 MB, free: 9.223 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002185/0.1228, allocations: 159.3 kB / 363.3 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.306e-05/0.1229, allocations: 40 kB / 363.3 MB, free: 9.027 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.358e-05/0.123, allocations: 40 kB / 363.3 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.074e-05/0.1231, allocations: 75.7 kB / 363.4 MB, free: 8.914 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001777/0.1233, allocations: 175.2 kB / 363.6 MB, free: 8.742 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004553/0.1237, allocations: 438.8 kB / 364 MB, free: 8.312 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1238, allocations: 4 kB / 364 MB, free: 8.309 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1238, allocations: 0 / 364 MB, free: 8.309 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.091e-06/0.1238, allocations: 0 / 364 MB, free: 8.309 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.001094/0.1249, allocations: 0.6129 MB / 364.6 MB, free: 7.645 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.1249, allocations: 12.03 kB / 364.7 MB, free: 7.633 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000183/0.1251, allocations: 40.55 kB / 364.7 MB, free: 7.594 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003759/0.1255, allocations: 292.7 kB / 365 MB, free: 7.266 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.679e-05/0.1255, allocations: 16.94 kB / 365 MB, free: 7.246 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.574e-05/0.1256, allocations: 28.38 kB / 365 MB, free: 7.219 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000523/0.1261, allocations: 288.9 kB / 365.3 MB, free: 6.922 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/0.1261, allocations: 7.922 kB / 365.3 MB, free: 6.914 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.284e-05/0.1262, allocations: 12 kB / 365.3 MB, free: 6.902 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.185e-06/0.1262, allocations: 4 kB / 365.3 MB, free: 6.898 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004207/0.1266, allocations: 210.1 kB / 365.5 MB, free: 6.695 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001846/0.1285, allocations: 1.148 MB / 366.7 MB, free: 5.469 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005529/0.129, allocations: 226.6 kB / 366.9 MB, free: 5.238 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003136/0.1294, allocations: 139.4 kB / 367 MB, free: 5.102 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.192e-05/0.1294, allocations: 7.984 kB / 367 MB, free: 5.094 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000371/0.1298, allocations: 170.7 kB / 367.2 MB, free: 4.902 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.864e-06/0.1298, allocations: 0 / 367.2 MB, free: 4.902 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001522/0.1313, allocations: 0.5123 MB / 367.7 MB, free: 4.363 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/0.1314, allocations: 132.5 kB / 367.9 MB, free: 4.203 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002793/0.1317, allocations: 241 kB / 368.1 MB, free: 3.957 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.442e-05/0.1318, allocations: 33.7 kB / 368.1 MB, free: 3.918 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001359/0.1319, allocations: 172.4 kB / 368.3 MB, free: 3.746 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.297e-05/0.132, allocations: 75.08 kB / 368.4 MB, free: 3.672 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001035/0.1321, allocations: 49.61 kB / 368.4 MB, free: 3.617 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.1323, allocations: 330.8 kB / 368.7 MB, free: 3.285 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001641/0.1324, allocations: 75.97 kB / 368.8 MB, free: 3.211 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002143/0.1327, allocations: 129.1 kB / 368.9 MB, free: 3.066 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003384/0.133, allocations: 167.3 kB / 369.1 MB, free: 2.891 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.133, allocations: 3.938 kB / 369.1 MB, free: 2.887 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005498/0.1336, allocations: 298.1 kB / 369.4 MB, free: 2.586 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/0.1336, allocations: 4 kB / 369.4 MB, free: 2.582 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.1336, allocations: 3.938 kB / 369.4 MB, free: 2.578 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003506/0.134, allocations: 88.8 kB / 369.5 MB, free: 2.488 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001443/0.1341, allocations: 31.92 kB / 369.5 MB, free: 2.457 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002523/0.1367, allocations: 2.142 MB / 371.7 MB, free: 180 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002305/0.1369, allocations: 31.73 kB / 371.7 MB, free: 148 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.507e-05/0.1369, allocations: 12.06 kB / 371.7 MB, free: 136 kB / 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.1423/0.2792, allocations: 144.3 kB / 371.8 MB, free: 19.79 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.107e-05/0.2793, allocations: 25.94 kB / 371.9 MB, free: 19.79 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.582e-05/0.2794, allocations: 31.23 kB / 371.9 MB, free: 19.79 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.2794, allocations: 6.359 kB / 371.9 MB, free: 19.79 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.2794, allocations: 0.8125 kB / 371.9 MB, free: 19.79 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.2795, allocations: 2.641 kB / 371.9 MB, free: 19.79 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009792/0.2804, allocations: 0.7663 MB / 372.7 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.2804, allocations: 0.625 kB / 372.7 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001252/0.2806, allocations: 27.5 kB / 372.7 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002819/0.2809, allocations: 87.92 kB / 372.8 MB, free: 19.4 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.902e-05/0.2809, allocations: 6.234 kB / 372.8 MB, free: 19.4 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001813/0.2827, allocations: 2.143 MB / 374.9 MB, free: 17.92 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.2827, allocations: 1.141 kB / 374.9 MB, free: 17.92 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006093/0.2834, allocations: 456.3 kB / 375.4 MB, free: 17.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.098e-05/0.2835, allocations: 126.3 kB / 375.5 MB, free: 17.62 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.023e-05/0.2835, allocations: 7.75 kB / 375.5 MB, free: 17.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002094/0.2837, allocations: 18.2 kB / 375.5 MB, free: 17.61 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.371e-05/0.2838, allocations: 37.2 kB / 375.6 MB, free: 17.6 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.434e-05/0.2838, allocations: 5.125 kB / 375.6 MB, free: 17.6 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001598/0.284, allocations: 180.3 kB / 375.8 MB, free: 17.49 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.284, allocations: 0 / 375.8 MB, free: 17.49 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004586/0.2845, allocations: 89.64 kB / 375.8 MB, free: 17.48 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 9.889e-05/0.2846, allocations: 107.8 kB / 375.9 MB, free: 17.39 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006597/0.2852, allocations: 365.6 kB / 376.3 MB, free: 17.2 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.2853, allocations: 0.5312 kB / 376.3 MB, free: 17.2 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003672/0.2856, allocations: 266.7 kB / 376.6 MB, free: 17.03 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004189/0.2861, allocations: 64.64 kB / 376.6 MB, free: 17.01 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001055/0.2871, allocations: 0.6294 MB / 377.3 MB, free: 16.64 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001879/0.2873, allocations: 0.7695 MB / 378 MB, free: 15.95 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.849e-05/0.2874, allocations: 20.7 kB / 378 MB, free: 15.94 MB / 302.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2874, allocations: 0 / 378 MB, free: 15.94 MB / 302.1 MB Notification: Performance of Templates: time 0.007734/0.2951, allocations: 4.689 MB / 382.7 MB, free: 15.58 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches