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.001114/0.001114, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001173/0.001173, allocations: 191.4 kB / 18.51 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.332/1.332, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00107/0.00107, allocations: 46.78 kB / 301.3 MB, free: 5.867 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08399/0.08508, allocations: 49.45 MB / 350.7 MB, free: 4.414 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004355/0.08947, allocations: 2.916 MB / 353.6 MB, free: 1.477 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001314/0.09081, allocations: 0.7285 MB / 354.4 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002159/0.09105, allocations: 11.94 kB / 354.4 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001793/0.09127, allocations: 51.5 kB / 354.4 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002523/0.09153, allocations: 95.12 kB / 354.5 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003531/0.09189, allocations: 103.8 kB / 354.6 MB, free: 496 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004788/0.09238, allocations: 402.3 kB / 355 MB, free: 92 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002716/0.09267, allocations: 135.3 kB / 355.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000246/0.09292, allocations: 151.4 kB / 355.3 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002459/0.09318, allocations: 167.2 kB / 355.5 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.169e-05/0.09325, allocations: 36 kB / 355.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.501e-05/0.09332, allocations: 36 kB / 355.5 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.869e-05/0.09339, allocations: 75.77 kB / 355.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001892/0.09359, allocations: 179.1 kB / 355.8 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004204/0.09401, allocations: 430.8 kB / 356.2 MB, free: 14.9 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.09403, allocations: 0 / 356.2 MB, free: 14.9 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.09404, allocations: 0 / 356.2 MB, free: 14.9 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.881e-05/0.09406, allocations: 0 / 356.2 MB, free: 14.9 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.0011/0.09517, allocations: 0.6207 MB / 356.8 MB, free: 14.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.09521, allocations: 8.031 kB / 356.8 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.569e-05/0.0953, allocations: 32.56 kB / 356.9 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000344/0.09566, allocations: 291.5 kB / 357.1 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.365e-05/0.09569, allocations: 28.92 kB / 357.2 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.493e-05/0.09574, allocations: 24.38 kB / 357.2 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004993/0.09625, allocations: 288.8 kB / 357.5 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.09627, allocations: 3.984 kB / 357.5 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.785e-05/0.0963, allocations: 8 kB / 357.5 MB, free: 13.51 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.004e-06/0.09632, allocations: 8 kB / 357.5 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004038/0.09673, allocations: 210.1 kB / 357.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001743/0.09848, allocations: 1.148 MB / 358.9 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005029/0.099, allocations: 211.5 kB / 359.1 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003078/0.09932, allocations: 144.8 kB / 359.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.444e-05/0.09935, allocations: 7.984 kB / 359.2 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003668/0.09973, allocations: 170.6 kB / 359.4 MB, free: 11.51 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 2.615e-06/0.09974, allocations: 0 / 359.4 MB, free: 11.51 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001408/0.1012, allocations: 0.5123 MB / 359.9 MB, free: 10.97 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.911e-05/0.1013, allocations: 136.5 kB / 360 MB, free: 10.8 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002486/0.1015, allocations: 241 kB / 360.3 MB, free: 10.56 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.843e-05/0.1016, allocations: 33.7 kB / 360.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001075/0.1017, allocations: 172.4 kB / 360.5 MB, free: 10.35 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.428e-05/0.1017, allocations: 70.98 kB / 360.5 MB, free: 10.28 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.61e-05/0.1018, allocations: 45.7 kB / 360.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.102, allocations: 338.8 kB / 360.9 MB, free: 9.891 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001586/0.1021, allocations: 71.97 kB / 361 MB, free: 9.82 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001745/0.1023, allocations: 121.1 kB / 361.1 MB, free: 9.684 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002901/0.1026, allocations: 171.3 kB / 361.3 MB, free: 9.504 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.1026, allocations: 0 / 361.3 MB, free: 9.504 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004984/0.1031, allocations: 305.9 kB / 361.6 MB, free: 9.195 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.252e-05/0.1032, allocations: 4 kB / 361.6 MB, free: 9.191 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.1032, allocations: 0 / 361.6 MB, free: 9.191 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003401/0.1035, allocations: 92.8 kB / 361.7 MB, free: 9.098 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000161/0.1037, allocations: 23.98 kB / 361.7 MB, free: 9.074 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002223/0.1059, allocations: 2.146 MB / 363.8 MB, free: 6.785 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002351/0.1062, allocations: 35.89 kB / 363.9 MB, free: 6.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.934e-05/0.1062, allocations: 4.109 kB / 363.9 MB, free: 6.746 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.0001609/0.1064, allocations: 146.7 kB / 364 MB, free: 6.594 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.823e-05/0.1064, allocations: 31.66 kB / 364 MB, free: 6.562 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.409e-05/0.1065, allocations: 30.17 kB / 364.1 MB, free: 6.535 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.1065, allocations: 4 kB / 364.1 MB, free: 6.531 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-06/0.1065, allocations: 0 / 364.1 MB, free: 6.531 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.1065, allocations: 0 / 364.1 MB, free: 6.531 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009643/0.1075, allocations: 0.7816 MB / 364.9 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.1075, allocations: 0 / 364.9 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001495/0.1077, allocations: 27.91 kB / 364.9 MB, free: 5.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002788/0.108, allocations: 88.8 kB / 365 MB, free: 5.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.84e-05/0.108, allocations: 8.031 kB / 365 MB, free: 5.562 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002173/0.1102, allocations: 2.139 MB / 367.1 MB, free: 3.285 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.1102, allocations: 8.094 kB / 367.1 MB, free: 3.277 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006566/0.1108, allocations: 451 kB / 367.6 MB, free: 2.816 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001181/0.111, allocations: 120.8 kB / 367.7 MB, free: 2.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.51e-05/0.111, allocations: 8 kB / 367.7 MB, free: 2.672 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002064/0.1112, allocations: 16.05 kB / 367.7 MB, free: 2.656 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001054/0.1114, allocations: 39.89 kB / 367.7 MB, free: 2.617 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.391e-05/0.1114, allocations: 4 kB / 367.7 MB, free: 2.613 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000158/0.1115, allocations: 176.5 kB / 367.9 MB, free: 2.441 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1116, allocations: 4 kB / 367.9 MB, free: 2.438 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004916/0.1121, allocations: 95.69 kB / 368 MB, free: 2.344 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.0001235/0.1122, allocations: 103.2 kB / 368.1 MB, free: 2.234 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000681/0.1129, allocations: 366.2 kB / 368.5 MB, free: 1.863 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.1129, allocations: 0 / 368.5 MB, free: 1.863 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003843/0.1133, allocations: 254.5 kB / 368.7 MB, free: 1.602 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004235/0.1137, allocations: 68.67 kB / 368.8 MB, free: 1.535 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001227/0.115, allocations: 0.6374 MB / 369.4 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003122/0.1153, allocations: 0.7635 MB / 370.2 MB, free: 72 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.592e-05/0.1153, allocations: 19.44 kB / 370.2 MB, free: 52 kB / 302.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1154, allocations: 0 / 370.2 MB, free: 52 kB / 302.1 MB Notification: Performance of Templates: time 0.1438/0.2592, allocations: 4.641 MB / 374.9 MB, free: 24.43 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