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.001149/0.001149, allocations: 116.9 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001257/0.001257, allocations: 204.5 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.436/1.436, allocations: 227.4 MB / 247.5 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 64.02 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09624/0.09748, allocations: 50.53 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004489/0.102, allocations: 2.93 MB / 361.8 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001575/0.1036, allocations: 0.8024 MB / 362.6 MB, free: 9.605 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003198/0.104, allocations: 4 kB / 362.6 MB, free: 9.602 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002432/0.1043, allocations: 51.44 kB / 362.7 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003483/0.1046, allocations: 99.11 kB / 362.8 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004752/0.1051, allocations: 111.8 kB / 362.9 MB, free: 9.344 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006314/0.1058, allocations: 418.2 kB / 363.3 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002836/0.106, allocations: 135.2 kB / 363.4 MB, free: 8.801 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003583/0.1064, allocations: 159.4 kB / 363.6 MB, free: 8.645 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003031/0.1067, allocations: 163.3 kB / 363.7 MB, free: 8.484 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.254e-05/0.1068, allocations: 36 kB / 363.8 MB, free: 8.449 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001181/0.1069, allocations: 44 kB / 363.8 MB, free: 8.406 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.297e-05/0.107, allocations: 75.7 kB / 363.9 MB, free: 8.332 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002285/0.1073, allocations: 179.2 kB / 364.1 MB, free: 8.156 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005189/0.1078, allocations: 434.5 kB / 364.5 MB, free: 7.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.1078, allocations: 0 / 364.5 MB, free: 7.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1078, allocations: 0 / 364.5 MB, free: 7.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.006e-05/0.1078, allocations: 0 / 364.5 MB, free: 7.73 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.001198/0.109, allocations: 0.6168 MB / 365.1 MB, free: 7.062 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.1091, allocations: 12.03 kB / 365.1 MB, free: 7.051 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001925/0.1093, allocations: 48.55 kB / 365.2 MB, free: 7.004 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004201/0.1097, allocations: 292.6 kB / 365.5 MB, free: 6.676 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.828e-05/0.1098, allocations: 24.92 kB / 365.5 MB, free: 6.648 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.768e-05/0.1098, allocations: 24.38 kB / 365.5 MB, free: 6.625 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005161/0.1103, allocations: 288.8 kB / 365.8 MB, free: 6.328 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.1104, allocations: 0 / 365.8 MB, free: 6.328 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.936e-05/0.1104, allocations: 12 kB / 365.8 MB, free: 6.316 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.1104, allocations: 8 kB / 365.8 MB, free: 6.309 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004137/0.1108, allocations: 202.2 kB / 366 MB, free: 6.113 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001822/0.1127, allocations: 1.144 MB / 367.2 MB, free: 4.891 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004847/0.1132, allocations: 226.5 kB / 367.4 MB, free: 4.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002909/0.1135, allocations: 147.8 kB / 367.5 MB, free: 4.516 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.599e-05/0.1135, allocations: 4 kB / 367.5 MB, free: 4.512 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002739/0.1138, allocations: 166.7 kB / 367.7 MB, free: 4.324 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.843e-06/0.1138, allocations: 3.938 kB / 367.7 MB, free: 4.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001348/0.1151, allocations: 0.5107 MB / 368.2 MB, free: 3.781 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.826e-05/0.1152, allocations: 136.5 kB / 368.3 MB, free: 3.617 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002447/0.1155, allocations: 241 kB / 368.6 MB, free: 3.371 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.772e-05/0.1155, allocations: 33.69 kB / 368.6 MB, free: 3.332 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001081/0.1156, allocations: 172.4 kB / 368.8 MB, free: 3.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.539e-05/0.1157, allocations: 67.08 kB / 368.8 MB, free: 3.094 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.511e-05/0.1158, allocations: 61.64 kB / 368.9 MB, free: 3.027 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.1159, allocations: 330.8 kB / 369.2 MB, free: 2.695 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001542/0.1161, allocations: 71.97 kB / 369.3 MB, free: 2.625 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001859/0.1163, allocations: 121.1 kB / 369.4 MB, free: 2.488 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002857/0.1166, allocations: 173.1 kB / 369.6 MB, free: 2.309 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.1166, allocations: 0 / 369.6 MB, free: 2.309 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005501/0.1171, allocations: 294 kB / 369.9 MB, free: 2.012 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.1172, allocations: 4 kB / 369.9 MB, free: 2.008 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.1172, allocations: 4 kB / 369.9 MB, free: 2.004 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003676/0.1176, allocations: 96.89 kB / 370 MB, free: 1.906 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001306/0.1177, allocations: 27.92 kB / 370 MB, free: 1.879 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1545/0.2722, allocations: 2.13 MB / 372.1 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002969/0.2725, allocations: 34.55 kB / 372.2 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.21e-05/0.2725, allocations: 14.25 kB / 372.2 MB, free: 19.12 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.0001614/0.2727, allocations: 152.5 kB / 372.3 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.074e-05/0.2728, allocations: 24.17 kB / 372.3 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.941e-05/0.2728, allocations: 32.55 kB / 372.4 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.2729, allocations: 3.094 kB / 372.4 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.2729, allocations: 0.5 kB / 372.4 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.2729, allocations: 2.75 kB / 372.4 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009553/0.2738, allocations: 0.7728 MB / 373.2 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.2739, allocations: 2.297 kB / 373.2 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001194/0.274, allocations: 18.22 kB / 373.2 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002764/0.2743, allocations: 90.08 kB / 373.3 MB, free: 18.61 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.076e-05/0.2743, allocations: 5.672 kB / 373.3 MB, free: 18.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00188/0.2762, allocations: 2.143 MB / 375.4 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.2762, allocations: 1.438 kB / 375.4 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005861/0.2768, allocations: 459 kB / 375.9 MB, free: 16.89 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.117e-05/0.2769, allocations: 124 kB / 376 MB, free: 16.79 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.761e-05/0.2769, allocations: 6.797 kB / 376 MB, free: 16.78 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000196/0.2771, allocations: 18.17 kB / 376 MB, free: 16.78 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.2772, allocations: 36.55 kB / 376 MB, free: 16.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.578e-05/0.2773, allocations: 5.203 kB / 376 MB, free: 16.77 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001394/0.2774, allocations: 178.8 kB / 376.2 MB, free: 16.66 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2774, allocations: 0 / 376.2 MB, free: 16.66 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004434/0.2779, allocations: 88.25 kB / 376.3 MB, free: 16.65 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.0001121/0.278, allocations: 109.8 kB / 376.4 MB, free: 16.56 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006477/0.2786, allocations: 358 kB / 376.8 MB, free: 16.37 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2787, allocations: 0 / 376.8 MB, free: 16.37 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004012/0.2791, allocations: 270.8 kB / 377 MB, free: 16.2 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004158/0.2795, allocations: 65.17 kB / 377.1 MB, free: 16.18 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009653/0.2805, allocations: 0.5996 MB / 377.7 MB, free: 15.86 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001758/0.2807, allocations: 0.7642 MB / 378.5 MB, free: 15.17 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.13e-05/0.2807, allocations: 22.23 kB / 378.5 MB, free: 15.16 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.948e-05/0.2808, allocations: 19.23 kB / 378.5 MB, free: 15.16 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2808, allocations: 0 / 378.5 MB, free: 15.16 MB / 302.1 MB Notification: Performance of Templates: time 0.009019/0.2898, allocations: 4.86 MB / 383.4 MB, free: 14.85 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 -s gbode -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/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_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches