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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008356/0.0008356, allocations: 79.91 kB / 21.18 MB, free: 3.391 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008626/0.0008626, allocations: 145.1 kB / 24.54 MB, free: 28 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9866/0.9866, allocations: 173.3 MB / 201.1 MB, free: 9.332 MB / 186.7 MB " [Timeout remaining time 179] 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=5050,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=5050,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 268 MB, free: 6.426 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.636e-05/1.805e-05, allocations: 2.312 kB / 268 MB, free: 6.422 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.002915/0.002933, allocations: 2.936 MB / 270.9 MB, free: 3.469 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001171/0.004104, allocations: 0.7206 MB / 271.7 MB, free: 2.742 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001626/0.004267, allocations: 4 kB / 271.7 MB, free: 2.738 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001789/0.004446, allocations: 47.5 kB / 271.7 MB, free: 2.691 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001802/0.004626, allocations: 107 kB / 271.8 MB, free: 2.586 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002971/0.004923, allocations: 107.8 kB / 271.9 MB, free: 2.48 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003243/0.005247, allocations: 422.1 kB / 272.3 MB, free: 2.066 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001701/0.005417, allocations: 95.59 kB / 272.4 MB, free: 1.969 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002239/0.005641, allocations: 231.4 kB / 272.6 MB, free: 1.742 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000156/0.005797, allocations: 127.7 kB / 272.8 MB, free: 1.617 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.365e-05/0.005841, allocations: 36 kB / 272.8 MB, free: 1.582 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.145e-05/0.005882, allocations: 40 kB / 272.8 MB, free: 1.543 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.611e-05/0.005938, allocations: 79.67 kB / 272.9 MB, free: 1.465 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.504e-05/0.006033, allocations: 119.7 kB / 273 MB, free: 1.348 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002566/0.00629, allocations: 267.1 kB / 273.3 MB, free: 1.086 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.194e-06/0.006292, allocations: 4 kB / 273.3 MB, free: 1.082 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.006293, allocations: 4 kB / 273.3 MB, free: 1.078 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.95e-06/0.006298, allocations: 0 / 273.3 MB, free: 1.078 MB / 250.7 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.0007178/0.007016, allocations: 0.641 MB / 273.9 MB, free: 408 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.007055, allocations: 12.86 kB / 274 MB, free: 396 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.537e-05/0.00714, allocations: 64.69 kB / 274 MB, free: 332 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002677/0.007408, allocations: 228 kB / 274.2 MB, free: 76 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.001e-05/0.007428, allocations: 16.88 kB / 274.3 MB, free: 60 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.517e-05/0.007473, allocations: 28.38 kB / 274.3 MB, free: 32 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003803/0.007853, allocations: 288.8 kB / 274.6 MB, free: 15.71 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.007864, allocations: 192 / 274.6 MB, free: 15.71 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.649e-05/0.00789, allocations: 16.31 kB / 274.6 MB, free: 15.7 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/0.007903, allocations: 11.94 kB / 274.6 MB, free: 15.69 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001745/0.008077, allocations: 102.9 kB / 274.7 MB, free: 15.59 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001089/0.009167, allocations: 1.088 MB / 275.8 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003375/0.009504, allocations: 167.1 kB / 276 MB, free: 14.25 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001743/0.009678, allocations: 95.58 kB / 276 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.94e-05/0.009698, allocations: 4 kB / 276.1 MB, free: 14.15 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002027/0.009901, allocations: 206.3 kB / 276.3 MB, free: 13.91 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 1.753e-06/0.009902, allocations: 4 kB / 276.3 MB, free: 13.91 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.0007673/0.01067, allocations: 348.8 kB / 276.6 MB, free: 13.55 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.483e-05/0.01073, allocations: 144.4 kB / 276.7 MB, free: 13.38 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001708/0.01091, allocations: 268.3 kB / 277 MB, free: 13.11 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.795e-05/0.01092, allocations: 29.7 kB / 277 MB, free: 13.07 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.589e-05/0.01102, allocations: 219.4 kB / 277.2 MB, free: 12.85 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.037e-05/0.01107, allocations: 79.36 kB / 277.3 MB, free: 12.77 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.294e-05/0.01113, allocations: 51.36 kB / 277.4 MB, free: 12.71 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.01126, allocations: 0.5001 MB / 277.9 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.011e-05/0.01133, allocations: 40 kB / 277.9 MB, free: 12.16 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001155/0.01145, allocations: 153.5 kB / 278.1 MB, free: 11.97 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001448/0.01159, allocations: 118.6 kB / 278.2 MB, free: 11.84 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.0116, allocations: 0 / 278.2 MB, free: 11.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002595/0.01185, allocations: 213.7 kB / 278.4 MB, free: 11.62 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.01187, allocations: 8 kB / 278.4 MB, free: 11.61 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.032e-06/0.01187, allocations: 128 / 278.4 MB, free: 11.61 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002386/0.01211, allocations: 83.5 kB / 278.5 MB, free: 11.53 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.818e-05/0.01219, allocations: 23.98 kB / 278.5 MB, free: 11.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001478/0.01367, allocations: 2.375 MB / 280.9 MB, free: 9.012 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.075e-05/0.01376, allocations: 27.81 kB / 280.9 MB, free: 8.984 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.203e-05/0.01377, allocations: 8 kB / 280.9 MB, free: 8.977 MB / 266.7 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.000102/0.01387, allocations: 168.6 kB / 281.1 MB, free: 8.801 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.28e-05/0.01391, allocations: 31.86 kB / 281.1 MB, free: 8.77 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.961e-05/0.01394, allocations: 30.27 kB / 281.1 MB, free: 8.742 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.01394, allocations: 4 kB / 281.1 MB, free: 8.738 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.994e-06/0.01394, allocations: 4.031 kB / 281.1 MB, free: 8.734 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.01395, allocations: 3.938 kB / 281.1 MB, free: 8.73 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005325/0.01448, allocations: 0.679 MB / 281.8 MB, free: 8.004 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.01448, allocations: 0 / 281.8 MB, free: 8.004 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.783e-05/0.01455, allocations: 23.92 kB / 281.8 MB, free: 7.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001464/0.0147, allocations: 67.8 kB / 281.9 MB, free: 7.91 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.037e-05/0.01472, allocations: 11.98 kB / 281.9 MB, free: 7.898 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001342/0.01606, allocations: 2.356 MB / 284.3 MB, free: 5.422 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.01606, allocations: 0 / 284.3 MB, free: 5.422 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003638/0.01642, allocations: 387.6 kB / 284.7 MB, free: 5.016 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.886e-05/0.01648, allocations: 43.77 kB / 284.7 MB, free: 4.973 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.184e-05/0.0165, allocations: 11.98 kB / 284.7 MB, free: 4.961 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.787e-05/0.01659, allocations: 20.05 kB / 284.7 MB, free: 4.941 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.262e-05/0.01667, allocations: 39.88 kB / 284.8 MB, free: 4.902 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.274e-05/0.01669, allocations: 11.94 kB / 284.8 MB, free: 4.891 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001042/0.01679, allocations: 193.1 kB / 285 MB, free: 4.699 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.1e-08/0.01679, allocations: 0 / 285 MB, free: 4.699 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002794/0.01707, allocations: 91.84 kB / 285.1 MB, free: 4.609 MB / 266.7 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.23e-05/0.01716, allocations: 103.2 kB / 285.2 MB, free: 4.5 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004181/0.01758, allocations: 356.8 kB / 285.5 MB, free: 4.133 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.01758, allocations: 0 / 285.5 MB, free: 4.133 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002227/0.01781, allocations: 292.4 kB / 285.8 MB, free: 3.828 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002599/0.01807, allocations: 56.92 kB / 285.9 MB, free: 3.77 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009359/0.019, allocations: 0.5574 MB / 286.4 MB, free: 3.176 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.023e-05/0.01906, allocations: 100.2 kB / 286.5 MB, free: 3.059 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.839e-05/0.01912, allocations: 22.28 kB / 286.5 MB, free: 3.035 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.38e-05/0.01916, allocations: 16.5 kB / 286.5 MB, free: 3.02 MB / 266.7 MB Notification: Performance of SimCode: time 4.01e-07/0.01916, allocations: 0 / 286.5 MB, free: 3.02 MB / 266.7 MB Notification: Performance of Templates: time 0.1013/0.1204, allocations: 4.83 MB / 291.4 MB, free: 29.09 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.737110776361078]