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.00125/0.00125, allocations: 123.4 kB / 17.79 MB, free: 5.246 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.001298/0.001298, allocations: 208.3 kB / 20.75 MB, free: 2.297 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.434/1.434, allocations: 230.6 MB / 254.1 MB, free: 15.09 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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 51.92 kB / 373 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1188, allocations: 53.32 MB / 426.3 MB, free: 4.762 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.006432/0.1252, allocations: 4.125 MB / 430.4 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2079/0.333, allocations: 1.049 MB / 431.5 MB, free: 7.582 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003371/0.3334, allocations: 14.91 kB / 431.5 MB, free: 7.582 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002377/0.3336, allocations: 86.48 kB / 431.6 MB, free: 7.582 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000314/0.3339, allocations: 192 kB / 431.8 MB, free: 7.582 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004554/0.3344, allocations: 225.4 kB / 432 MB, free: 7.582 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006774/0.3351, allocations: 0.8166 MB / 432.8 MB, free: 7.484 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002213/0.3353, allocations: 123.4 kB / 432.9 MB, free: 7.461 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000394/0.3357, allocations: 335.7 kB / 433.3 MB, free: 7.402 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003184/0.336, allocations: 362.8 kB / 433.6 MB, free: 7.336 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.068e-05/0.3361, allocations: 82.44 kB / 433.7 MB, free: 7.336 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001313/0.3362, allocations: 84.62 kB / 433.8 MB, free: 7.336 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.695e-05/0.3363, allocations: 157.7 kB / 433.9 MB, free: 7.312 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002357/0.3365, allocations: 337.5 kB / 434.3 MB, free: 7.227 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008036/0.3374, allocations: 0.8651 MB / 435.1 MB, free: 7.109 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.3374, allocations: 0 / 435.1 MB, free: 7.109 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3374, allocations: 1.094 kB / 435.1 MB, free: 7.109 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.18e-05/0.3374, allocations: 0 / 435.1 MB, free: 7.109 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.002523/0.3399, allocations: 1.051 MB / 436.2 MB, free: 6.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.3399, allocations: 9.531 kB / 436.2 MB, free: 6.43 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.004e-05/0.34, allocations: 80.73 kB / 436.3 MB, free: 6.363 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002286/0.3403, allocations: 71.61 kB / 436.3 MB, free: 6.332 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005423/0.3408, allocations: 430.4 kB / 436.8 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.532e-05/0.3408, allocations: 33.42 kB / 436.8 MB, free: 5.977 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.422e-05/0.3409, allocations: 36.69 kB / 436.8 MB, free: 5.965 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001432/0.3423, allocations: 0.6058 MB / 437.4 MB, free: 5.703 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.3423, allocations: 2.344 kB / 437.4 MB, free: 5.703 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.182e-05/0.3424, allocations: 11.59 kB / 437.5 MB, free: 5.695 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.3424, allocations: 13.06 kB / 437.5 MB, free: 5.691 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001895/0.3443, allocations: 0.6401 MB / 438.1 MB, free: 5.496 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003422/0.3477, allocations: 2.155 MB / 440.3 MB, free: 4.098 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003765/0.3515, allocations: 0.8327 MB / 441.1 MB, free: 3.855 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001033/0.3525, allocations: 371.2 kB / 441.5 MB, free: 3.742 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.521e-05/0.3526, allocations: 12.77 kB / 441.5 MB, free: 3.734 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001182/0.3538, allocations: 433.2 kB / 441.9 MB, free: 3.566 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.004e-06/0.3538, allocations: 0.5938 kB / 441.9 MB, free: 3.566 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.01454/0.3683, allocations: 2.381 MB / 444.3 MB, free: 3.043 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.617e-05/0.3684, allocations: 90.45 kB / 444.4 MB, free: 2.945 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008347/0.3692, allocations: 416.7 kB / 444.8 MB, free: 2.746 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.085e-05/0.3693, allocations: 37.64 kB / 444.8 MB, free: 2.707 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002041/0.3695, allocations: 232 kB / 445 MB, free: 2.516 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001415/0.3696, allocations: 143.2 kB / 445.2 MB, free: 2.402 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001823/0.3698, allocations: 71.02 kB / 445.2 MB, free: 2.359 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.37, allocations: 359 kB / 445.6 MB, free: 2.023 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001036/0.371, allocations: 303 kB / 445.9 MB, free: 1.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001088/0.3721, allocations: 337.4 kB / 446.2 MB, free: 1.816 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002087/0.3742, allocations: 0.5995 MB / 446.8 MB, free: 1.586 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.3742, allocations: 1.188 kB / 446.8 MB, free: 1.586 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003781/0.3779, allocations: 0.989 MB / 447.8 MB, free: 1.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.319e-05/0.378, allocations: 38.53 kB / 447.8 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.378, allocations: 0 / 447.8 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001355/0.3794, allocations: 440.8 kB / 448.3 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005038/0.3799, allocations: 80.84 kB / 448.4 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008254/0.3881, allocations: 3.823 MB / 452.2 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008087/0.3889, allocations: 90.58 kB / 452.3 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.485e-05/0.389, allocations: 12.25 kB / 452.3 MB, free: 14.53 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.0002987/0.3893, allocations: 173.5 kB / 452.4 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.199e-05/0.3894, allocations: 53.95 kB / 452.5 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001378/0.3895, allocations: 61.31 kB / 452.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.3895, allocations: 4.062 kB / 452.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.3895, allocations: 0 / 452.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.3895, allocations: 2.125 kB / 452.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007681/0.3903, allocations: 0.6286 MB / 453.2 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.3903, allocations: 4 kB / 453.2 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004812/0.3908, allocations: 80.33 kB / 453.3 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001224/0.392, allocations: 435.3 kB / 453.7 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.806e-05/0.392, allocations: 11.31 kB / 453.7 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008767/0.4008, allocations: 3.811 MB / 457.5 MB, free: 10.69 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.4008, allocations: 0 / 457.5 MB, free: 10.69 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005958/0.4068, allocations: 1.491 MB / 459 MB, free: 9.914 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003709/0.4071, allocations: 182.3 kB / 459.2 MB, free: 9.734 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.163e-05/0.4072, allocations: 18.47 kB / 459.2 MB, free: 9.719 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005789/0.4078, allocations: 69.72 kB / 459.3 MB, free: 9.691 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001679/0.408, allocations: 51.84 kB / 459.3 MB, free: 9.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.6e-05/0.408, allocations: 14.98 kB / 459.3 MB, free: 9.652 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003645/0.4084, allocations: 293 kB / 459.6 MB, free: 9.48 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4084, allocations: 0 / 459.6 MB, free: 9.48 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007043/0.4091, allocations: 181.5 kB / 459.8 MB, free: 9.449 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.006332/0.4154, allocations: 2.046 MB / 461.9 MB, free: 8.133 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002906/0.4183, allocations: 0.9438 MB / 462.8 MB, free: 7.57 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.66e-06/0.4183, allocations: 4.062 kB / 462.8 MB, free: 7.566 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00165/0.42, allocations: 0.574 MB / 463.4 MB, free: 7.215 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006483/0.4206, allocations: 96.84 kB / 463.5 MB, free: 7.156 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01551/0.4361, allocations: 5.963 MB / 469.4 MB, free: 3.551 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006167/0.4368, allocations: 0.8421 MB / 470.3 MB, free: 2.781 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002919/0.4371, allocations: 45.39 kB / 470.3 MB, free: 2.758 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002925/0.4373, allocations: 164 kB / 470.5 MB, free: 2.617 MB / 366.1 MB Notification: Performance of SimCode: time 1.704e-06/0.4373, allocations: 0 / 470.5 MB, free: 2.617 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07451/0.5119, allocations: 18.63 MB / 489.1 MB, free: 268 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.19/12.7, allocations: 6.688 kB / 489.1 MB, free: 264 kB / 382.1 MB " [Timeout remaining time 647] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.csv --start-time 0 --stop-time 0.001 --timeout 50 --relative-tolerance 1e-12 --interface-type ModelExchange --solver CVode --output-interval 5e-07 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.23664042398741] Failed to read output from testmodel.py, exit status != 0: ['time', 'L.i', 'simpleTriac.thyristor.vControl', 'simpleTriac.thyristor1.vControl'] 12.800383837995469 12.82579856 12.483782747 Calling exit ...