Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.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.001807/0.001807, allocations: 107 kB / 21.18 MB, free: 0.6484 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.002226/0.002226, allocations: 214.7 kB / 24.48 MB, free: 3.941 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 2.064/2.064, allocations: 230.6 MB / 258.2 MB, free: 7.789 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+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.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_4.1.0_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_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001843/0.001843, allocations: 47.92 kB / 379 MB, free: 2.523 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3131/0.3149, allocations: 53.37 MB / 432.3 MB, free: 6.543 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.006609/0.3215, allocations: 3.712 MB / 436 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00243/0.324, allocations: 1.025 MB / 437.1 MB, free: 1.781 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003881/0.3243, allocations: 15.94 kB / 437.1 MB, free: 1.766 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00034/0.3247, allocations: 87.12 kB / 437.2 MB, free: 1.68 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005788/0.3253, allocations: 190.3 kB / 437.4 MB, free: 1.492 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007249/0.326, allocations: 235.6 kB / 437.6 MB, free: 1.262 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001143/0.3271, allocations: 0.8174 MB / 438.4 MB, free: 452 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00031/0.3274, allocations: 119.4 kB / 438.5 MB, free: 328 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006342/0.3281, allocations: 330.9 kB / 438.8 MB, free: 15.99 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000601/0.3287, allocations: 366.6 kB / 439.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001665/0.3288, allocations: 80 kB / 439.3 MB, free: 15.56 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002073/0.329, allocations: 92 kB / 439.4 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000174/0.3292, allocations: 155.5 kB / 439.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003846/0.3296, allocations: 286.8 kB / 439.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001138/0.3307, allocations: 0.8677 MB / 440.7 MB, free: 14.17 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3307, allocations: 0 / 440.7 MB, free: 14.17 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3307, allocations: 0 / 440.7 MB, free: 14.17 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.667e-05/0.3308, allocations: 0 / 440.7 MB, free: 14.17 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.0034/0.3342, allocations: 0.9779 MB / 441.7 MB, free: 13.15 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.3342, allocations: 8.031 kB / 441.7 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003063/0.3345, allocations: 76.55 kB / 441.7 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008209/0.3353, allocations: 368.4 kB / 442.1 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.76e-05/0.3354, allocations: 29.38 kB / 442.1 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001198/0.3355, allocations: 36.38 kB / 442.2 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001906/0.3374, allocations: 0.6283 MB / 442.8 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.929e-05/0.3374, allocations: 3.984 kB / 442.8 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.897e-05/0.3375, allocations: 20 kB / 442.8 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.521e-05/0.3375, allocations: 8 kB / 442.8 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002452/0.34, allocations: 0.6323 MB / 443.4 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004565/0.3445, allocations: 1.901 MB / 445.3 MB, free: 9.316 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005033/0.3496, allocations: 0.8311 MB / 446.2 MB, free: 8.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001329/0.3509, allocations: 373.2 kB / 446.5 MB, free: 8.113 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.175e-05/0.3509, allocations: 8.328 kB / 446.6 MB, free: 8.105 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001448/0.3524, allocations: 464.2 kB / 447 MB, free: 7.629 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 3.095e-06/0.3524, allocations: 0 / 447 MB, free: 7.629 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.019/0.3714, allocations: 2.305 MB / 449.3 MB, free: 5.312 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.333e-05/0.3715, allocations: 85.11 kB / 449.4 MB, free: 5.211 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006118/0.3721, allocations: 393.7 kB / 449.8 MB, free: 4.816 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.993e-05/0.3721, allocations: 33.7 kB / 449.8 MB, free: 4.777 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002405/0.3724, allocations: 244.7 kB / 450.1 MB, free: 4.535 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001784/0.3726, allocations: 138.8 kB / 450.2 MB, free: 4.398 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002347/0.3728, allocations: 78.06 kB / 450.3 MB, free: 4.312 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001934/0.373, allocations: 358.7 kB / 450.6 MB, free: 3.953 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001228/0.3742, allocations: 326.3 kB / 450.9 MB, free: 3.629 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001273/0.3755, allocations: 393.5 kB / 451.3 MB, free: 3.227 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002238/0.3777, allocations: 0.599 MB / 451.9 MB, free: 2.613 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.3777, allocations: 0 / 451.9 MB, free: 2.613 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004713/0.3824, allocations: 1.019 MB / 452.9 MB, free: 1.574 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.398e-05/0.3825, allocations: 33.7 kB / 453 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.066e-06/0.3825, allocations: 0 / 453 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001694/0.3842, allocations: 440.3 kB / 453.4 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000627/0.3848, allocations: 87.92 kB / 453.5 MB, free: 1.016 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01136/0.3962, allocations: 3.615 MB / 457.1 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008437/0.397, allocations: 91.8 kB / 457.2 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.455e-05/0.3971, allocations: 15.98 kB / 457.2 MB, free: 13.19 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.0003284/0.3974, allocations: 174.9 kB / 457.4 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001139/0.3975, allocations: 43.72 kB / 457.4 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00016/0.3977, allocations: 56.42 kB / 457.5 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.3977, allocations: 4 kB / 457.5 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.3977, allocations: 3.984 kB / 457.5 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.3977, allocations: 0 / 457.5 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007664/0.3985, allocations: 452.9 kB / 457.9 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.495e-06/0.3985, allocations: 3.938 kB / 457.9 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006254/0.3991, allocations: 75.92 kB / 458 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001604/0.4007, allocations: 431.5 kB / 458.4 MB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.787e-05/0.4008, allocations: 11.98 kB / 458.4 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01108/0.4119, allocations: 3.61 MB / 462 MB, free: 8.215 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.4119, allocations: 3.938 kB / 462 MB, free: 8.211 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007858/0.4197, allocations: 1.508 MB / 463.6 MB, free: 6.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003533/0.4201, allocations: 99.62 kB / 463.7 MB, free: 6.582 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001121/0.4202, allocations: 12 kB / 463.7 MB, free: 6.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007283/0.4209, allocations: 67.91 kB / 463.7 MB, free: 6.504 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001854/0.4211, allocations: 55.91 kB / 463.8 MB, free: 6.449 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.491e-05/0.4212, allocations: 12 kB / 463.8 MB, free: 6.438 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004281/0.4216, allocations: 283.1 kB / 464.1 MB, free: 6.164 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4216, allocations: 4 kB / 464.1 MB, free: 6.16 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008655/0.4225, allocations: 179.7 kB / 464.3 MB, free: 5.984 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.0001888/0.4227, allocations: 111.2 kB / 464.4 MB, free: 5.867 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003565/0.4262, allocations: 0.9675 MB / 465.3 MB, free: 4.867 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.4262, allocations: 0 / 465.3 MB, free: 4.867 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002069/0.4283, allocations: 0.5765 MB / 465.9 MB, free: 4.277 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005887/0.4289, allocations: 80.2 kB / 466 MB, free: 4.203 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004336/0.4332, allocations: 1.272 MB / 467.3 MB, free: 2.902 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003066/0.4335, allocations: 236.9 kB / 467.5 MB, free: 2.645 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002242/0.4337, allocations: 43.25 kB / 467.5 MB, free: 2.602 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00016/0.4339, allocations: 35.42 kB / 467.6 MB, free: 2.566 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.4339, allocations: 0 / 467.6 MB, free: 2.566 MB / 366.1 MB Notification: Performance of Templates: time 0.02914/0.463, allocations: 14.1 MB / 481.7 MB, free: 4.594 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 7.024360195995541] Failed to read output from testmodel.py, exit status != 0: ['time', 'L.i', 'simpleTriac.thyristor.vControl', 'simpleTriac.thyristor1.vControl'] 0.4912086590047693 0.49099927200000004 0.15648466600000002 Calling exit ...