Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001779/0.001779, allocations: 84.3 kB / 20.68 MB, free: 1.039 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002171/0.002171, allocations: 168.8 kB / 23.95 MB, free: 4.172 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.454/1.454, allocations: 177.1 MB / 204.3 MB, free: 9.168 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5050,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5050,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.537e-06/3.537e-06, allocations: 0.5625 kB / 325.1 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.707e-05/4.061e-05, allocations: 2.281 kB / 325.1 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.006287/0.006327, allocations: 2.751 MB / 327.8 MB, free: 14.67 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002291/0.008618, allocations: 0.7753 MB / 328.6 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002027/0.008821, allocations: 8.031 kB / 328.6 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002513/0.009072, allocations: 47.38 kB / 328.7 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003548/0.009427, allocations: 109.7 kB / 328.8 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005584/0.009986, allocations: 118.8 kB / 328.9 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007851/0.01077, allocations: 425.7 kB / 329.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002841/0.01105, allocations: 88.7 kB / 329.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005008/0.01156, allocations: 241.2 kB / 329.6 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003046/0.01186, allocations: 118.5 kB / 329.7 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.501e-05/0.01195, allocations: 35.81 kB / 329.8 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001398/0.01209, allocations: 40.03 kB / 329.8 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001203/0.01221, allocations: 80.27 kB / 329.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002339/0.01244, allocations: 122.7 kB / 330 MB, free: 13.4 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008509/0.01329, allocations: 461.6 kB / 330.5 MB, free: 13.2 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.01329, allocations: 0 / 330.5 MB, free: 13.2 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.0133, allocations: 0 / 330.5 MB, free: 13.2 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.306e-05/0.01331, allocations: 1.062 kB / 330.5 MB, free: 13.2 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.001579/0.01489, allocations: 0.5442 MB / 331 MB, free: 12.74 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.092e-05/0.01494, allocations: 9.562 kB / 331 MB, free: 12.74 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000269/0.01521, allocations: 51.91 kB / 331.1 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005447/0.01575, allocations: 233 kB / 331.3 MB, free: 12.49 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.759e-05/0.01578, allocations: 19.03 kB / 331.3 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.307e-05/0.01585, allocations: 23.62 kB / 331.3 MB, free: 12.47 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008609/0.01671, allocations: 344.3 kB / 331.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.769e-05/0.01673, allocations: 1.125 kB / 331.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.873e-05/0.01678, allocations: 14.41 kB / 331.7 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.532e-05/0.01679, allocations: 10.22 kB / 331.7 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006493/0.01744, allocations: 195 kB / 331.9 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002421/0.01986, allocations: 0.9894 MB / 332.9 MB, free: 11.28 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007505/0.02062, allocations: 196.8 kB / 333.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000454/0.02107, allocations: 126.3 kB / 333.2 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.468e-05/0.02109, allocations: 2.469 kB / 333.2 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004971/0.02159, allocations: 219.6 kB / 333.4 MB, free: 10.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 2.395e-06/0.02159, allocations: 0 / 333.4 MB, free: 10.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.002144/0.02374, allocations: 441.4 kB / 333.8 MB, free: 10.66 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001425/0.02388, allocations: 143.1 kB / 334 MB, free: 10.49 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004009/0.02428, allocations: 236.5 kB / 334.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.039e-05/0.02433, allocations: 32.14 kB / 334.2 MB, free: 10.28 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001991/0.02453, allocations: 178.6 kB / 334.4 MB, free: 10.12 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.851e-05/0.02463, allocations: 72.5 kB / 334.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001433/0.02477, allocations: 51.31 kB / 334.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002184/0.02499, allocations: 332.2 kB / 334.9 MB, free: 9.688 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000244/0.02523, allocations: 73.25 kB / 334.9 MB, free: 9.652 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003605/0.0256, allocations: 179.5 kB / 335.1 MB, free: 9.492 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005002/0.0261, allocations: 172.1 kB / 335.3 MB, free: 9.387 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.0261, allocations: 1.281 kB / 335.3 MB, free: 9.387 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008236/0.02692, allocations: 281 kB / 335.6 MB, free: 9.23 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.215e-05/0.02695, allocations: 5.469 kB / 335.6 MB, free: 9.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.02695, allocations: 1.156 kB / 335.6 MB, free: 9.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004939/0.02745, allocations: 99.36 kB / 335.7 MB, free: 9.172 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001983/0.02765, allocations: 33.58 kB / 335.7 MB, free: 9.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003605/0.03125, allocations: 1.988 MB / 337.7 MB, free: 7.395 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000355/0.03161, allocations: 36.59 kB / 337.7 MB, free: 7.371 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.807e-05/0.03164, allocations: 9.562 kB / 337.7 MB, free: 7.367 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.0002608/0.0319, allocations: 153.7 kB / 337.9 MB, free: 7.223 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.343e-05/0.03197, allocations: 24.02 kB / 337.9 MB, free: 7.211 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.033e-05/0.03206, allocations: 32.02 kB / 337.9 MB, free: 7.188 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.03207, allocations: 2.969 kB / 337.9 MB, free: 7.188 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.03207, allocations: 0 / 337.9 MB, free: 7.188 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.969e-06/0.03208, allocations: 5.25 kB / 337.9 MB, free: 7.184 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001471/0.03355, allocations: 0.6586 MB / 338.6 MB, free: 6.645 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.03355, allocations: 0 / 338.6 MB, free: 6.645 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001705/0.03372, allocations: 23.52 kB / 338.6 MB, free: 6.637 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003858/0.03411, allocations: 86.42 kB / 338.7 MB, free: 6.59 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.934e-05/0.03414, allocations: 6.25 kB / 338.7 MB, free: 6.586 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003361/0.0375, allocations: 1.995 MB / 340.7 MB, free: 4.816 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.0375, allocations: 0 / 340.7 MB, free: 4.816 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001096/0.0386, allocations: 446.6 kB / 341.1 MB, free: 4.477 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001512/0.03875, allocations: 43.8 kB / 341.2 MB, free: 4.434 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.594e-05/0.03881, allocations: 8 kB / 341.2 MB, free: 4.426 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003171/0.03912, allocations: 28.09 kB / 341.2 MB, free: 4.398 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001373/0.03926, allocations: 27.94 kB / 341.2 MB, free: 4.371 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.704e-05/0.03929, allocations: 15.94 kB / 341.3 MB, free: 4.355 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002525/0.03954, allocations: 165.2 kB / 341.4 MB, free: 4.195 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.03954, allocations: 96 / 341.4 MB, free: 4.195 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008098/0.04035, allocations: 99.77 kB / 341.5 MB, free: 4.098 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.0002525/0.0406, allocations: 107.2 kB / 341.6 MB, free: 3.98 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001048/0.04165, allocations: 349.3 kB / 342 MB, free: 3.629 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.04165, allocations: 4 kB / 342 MB, free: 3.625 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006356/0.04229, allocations: 262.5 kB / 342.2 MB, free: 3.355 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006456/0.04294, allocations: 48.94 kB / 342.3 MB, free: 3.309 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001563/0.0445, allocations: 0.5471 MB / 342.8 MB, free: 2.727 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002228/0.04472, allocations: 159.5 kB / 343 MB, free: 2.555 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000119/0.04484, allocations: 18.3 kB / 343 MB, free: 2.535 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.847e-05/0.04491, allocations: 20.5 kB / 343 MB, free: 2.516 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.04491, allocations: 0 / 343 MB, free: 2.516 MB / 302.1 MB Notification: Performance of Templates: time 0.01002/0.05493, allocations: 4.541 MB / 347.6 MB, free: 14.07 MB / 318.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.528832975775003]