Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.008992/0.008992, allocations: 107.1 kB / 21.98 MB, free: 5.223 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002465/0.002465, allocations: 216.6 kB / 25.29 MB, free: 3.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.445/1.445, allocations: 230.6 MB / 259 MB, free: 7.996 MB / 206.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-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.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") [Timeout 660] "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.001971/0.001971, allocations: 68.55 kB / 379.8 MB, free: 2.578 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2324/0.2344, allocations: 53.37 MB / 433.2 MB, free: 6.895 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005586/0.24, allocations: 4.132 MB / 437.3 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002088/0.2421, allocations: 1.081 MB / 438.4 MB, free: 1.656 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002389/0.2423, allocations: 11.94 kB / 438.4 MB, free: 1.645 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002278/0.2425, allocations: 83.14 kB / 438.5 MB, free: 1.562 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003342/0.2429, allocations: 186.4 kB / 438.7 MB, free: 1.379 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005357/0.2434, allocations: 227.7 kB / 438.9 MB, free: 1.156 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008743/0.2443, allocations: 0.825 MB / 439.7 MB, free: 336 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002513/0.2445, allocations: 121.4 kB / 439.8 MB, free: 208 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004913/0.245, allocations: 323 kB / 440.2 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004591/0.2455, allocations: 366.5 kB / 440.5 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001205/0.2456, allocations: 84 kB / 440.6 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000146/0.2457, allocations: 91.94 kB / 440.7 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001428/0.2459, allocations: 159.5 kB / 440.8 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003227/0.2462, allocations: 338.5 kB / 441.2 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009102/0.2471, allocations: 0.8599 MB / 442 MB, free: 14.01 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.2471, allocations: 0 / 442 MB, free: 14.01 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2471, allocations: 3.938 kB / 442 MB, free: 14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.133e-05/0.2471, allocations: 0 / 442 MB, free: 14 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.002623/0.2498, allocations: 0.9779 MB / 443 MB, free: 12.99 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.2498, allocations: 12.03 kB / 443 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002406/0.25, allocations: 72.55 kB / 443.1 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006343/0.2507, allocations: 364.4 kB / 443.4 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.13e-05/0.2507, allocations: 29.38 kB / 443.5 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.015e-05/0.2508, allocations: 32.38 kB / 443.5 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001461/0.2523, allocations: 0.6071 MB / 444.1 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.2523, allocations: 0 / 444.1 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.412e-05/0.2523, allocations: 19.98 kB / 444.1 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.396e-05/0.2523, allocations: 12 kB / 444.1 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001888/0.2542, allocations: 0.6401 MB / 444.8 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003856/0.2581, allocations: 2.122 MB / 446.9 MB, free: 8.945 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00394/0.262, allocations: 0.8275 MB / 447.7 MB, free: 8.109 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001079/0.2631, allocations: 366 kB / 448.1 MB, free: 7.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.595e-05/0.2632, allocations: 16.31 kB / 448.1 MB, free: 7.734 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001141/0.2643, allocations: 434.6 kB / 448.5 MB, free: 7.293 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.044e-06/0.2643, allocations: 0 / 448.5 MB, free: 7.293 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.01479/0.2791, allocations: 2.297 MB / 450.8 MB, free: 4.984 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.709e-05/0.2792, allocations: 85.09 kB / 450.9 MB, free: 4.883 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005792/0.2797, allocations: 413.9 kB / 451.3 MB, free: 4.469 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.303e-05/0.2798, allocations: 37.7 kB / 451.4 MB, free: 4.426 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002045/0.28, allocations: 248.8 kB / 451.6 MB, free: 4.176 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001406/0.2802, allocations: 138.8 kB / 451.7 MB, free: 4.039 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001795/0.2803, allocations: 74.06 kB / 451.8 MB, free: 3.957 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001723/0.2805, allocations: 358.7 kB / 452.2 MB, free: 3.598 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009415/0.2815, allocations: 300.5 kB / 452.5 MB, free: 3.305 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009572/0.2824, allocations: 338.1 kB / 452.8 MB, free: 2.969 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001789/0.2842, allocations: 0.5913 MB / 453.4 MB, free: 2.363 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.2842, allocations: 4 kB / 453.4 MB, free: 2.359 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.00371/0.2879, allocations: 0.998 MB / 454.4 MB, free: 1.348 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.685e-05/0.288, allocations: 29.7 kB / 454.4 MB, free: 1.312 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.288, allocations: 4 kB / 454.4 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001309/0.2893, allocations: 429.6 kB / 454.8 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004928/0.2898, allocations: 99.84 kB / 454.9 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008868/0.2986, allocations: 3.708 MB / 458.6 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007526/0.2994, allocations: 99.73 kB / 458.7 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.528e-05/0.2994, allocations: 11.98 kB / 458.7 MB, free: 12.86 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (trapezoidCurrent.signalSource.count,$PRE.trapezoidCurrent.signalSource.count,trapezoidCurrent.signalSource.T_start,$PRE.trapezoidCurrent.signalSource.T_start,simpleTriac.idealDiode1.off,simpleTriac.idealDiode.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * 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 {(4,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0002794/0.2997, allocations: 184.5 kB / 458.9 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.457e-05/0.2998, allocations: 51.67 kB / 459 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001318/0.2999, allocations: 56.53 kB / 459 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.719e-06/0.3, allocations: 7.984 kB / 459 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.3, allocations: 0 / 459 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.3, allocations: 0 / 459 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007644/0.3007, allocations: 0.5939 MB / 459.6 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.3007, allocations: 0 / 459.6 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004965/0.3012, allocations: 83.86 kB / 459.7 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001234/0.3025, allocations: 432.6 kB / 460.1 MB, free: 11.42 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.679e-05/0.3025, allocations: 15.92 kB / 460.1 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008876/0.3114, allocations: 3.717 MB / 463.9 MB, free: 7.574 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3114, allocations: 0 / 463.9 MB, free: 7.574 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006139/0.3175, allocations: 1.496 MB / 465.4 MB, free: 6.055 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002997/0.3178, allocations: 103.6 kB / 465.5 MB, free: 5.953 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.292e-05/0.3179, allocations: 15.94 kB / 465.5 MB, free: 5.938 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005975/0.3185, allocations: 71.91 kB / 465.5 MB, free: 5.867 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001677/0.3187, allocations: 55.84 kB / 465.6 MB, free: 5.812 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.029e-05/0.3187, allocations: 11.98 kB / 465.6 MB, free: 5.801 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003822/0.3191, allocations: 295.2 kB / 465.9 MB, free: 5.516 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3191, allocations: 4 kB / 465.9 MB, free: 5.512 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006396/0.3197, allocations: 175.8 kB / 466.1 MB, free: 5.34 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (L.i,simpleTriac.thyristor.vControl,simpleTriac.thyristor1.vControl) * Number of discrete variables: 5 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.count) * Number of discrete states: 1 (trapezoidCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001703/0.3199, allocations: 107.2 kB / 466.2 MB, free: 5.227 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002784/0.3227, allocations: 0.9423 MB / 467.1 MB, free: 4.258 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3227, allocations: 0 / 467.1 MB, free: 4.258 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001658/0.3243, allocations: 0.5804 MB / 467.7 MB, free: 3.664 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004921/0.3248, allocations: 91.48 kB / 467.8 MB, free: 3.578 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003471/0.3283, allocations: 1.305 MB / 469.1 MB, free: 2.238 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004856/0.3288, allocations: 0.8433 MB / 469.9 MB, free: 1.367 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001585/0.329, allocations: 35.44 kB / 470 MB, free: 1.332 MB / 366.1 MB Notification: Performance of SimCode: time 9.11e-07/0.329, allocations: 0 / 470 MB, free: 1.332 MB / 366.1 MB Notification: Performance of Templates: time 0.01465/0.3436, allocations: 10.01 MB / 480 MB, free: 7.355 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.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: 8.605474326992407]