Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.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.001714/0.001714, allocations: 103.5 kB / 20.43 MB, free: 1.328 MB / 14.72 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.00228/0.00228, allocations: 180.1 kB / 23.7 MB, free: 4.52 MB / 14.72 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 1.389/1.389, allocations: 225.7 MB / 252.5 MB, free: 12.81 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001539/0.001539, allocations: 59.89 kB / 370.4 MB, free: 9.648 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2694/0.2709, allocations: 52.18 MB / 422.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005074/0.276, allocations: 3.673 MB / 426.3 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001794/0.2778, allocations: 0.9778 MB / 427.2 MB, free: 9.703 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002321/0.278, allocations: 11.94 kB / 427.2 MB, free: 9.691 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00024/0.2782, allocations: 83.14 kB / 427.3 MB, free: 9.609 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003486/0.2786, allocations: 190.5 kB / 427.5 MB, free: 9.422 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004984/0.2791, allocations: 223.6 kB / 427.7 MB, free: 9.203 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007971/0.2799, allocations: 0.8095 MB / 428.5 MB, free: 8.391 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002293/0.2801, allocations: 109.4 kB / 428.6 MB, free: 8.277 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003885/0.2805, allocations: 319 kB / 429 MB, free: 7.965 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004012/0.2809, allocations: 314.6 kB / 429.3 MB, free: 7.656 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001149/0.281, allocations: 84 kB / 429.3 MB, free: 7.574 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001311/0.2811, allocations: 83.94 kB / 429.4 MB, free: 7.492 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001381/0.2813, allocations: 159.5 kB / 429.6 MB, free: 7.336 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002749/0.2816, allocations: 274.8 kB / 429.8 MB, free: 7.066 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008181/0.2824, allocations: 0.8563 MB / 430.7 MB, free: 6.207 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2824, allocations: 4 kB / 430.7 MB, free: 6.203 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2824, allocations: 0 / 430.7 MB, free: 6.203 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.145e-06/0.2824, allocations: 0 / 430.7 MB, free: 6.203 MB / 334.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.002518/0.2849, allocations: 0.9546 MB / 431.7 MB, free: 5.211 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.2849, allocations: 8.031 kB / 431.7 MB, free: 5.203 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.542e-05/0.285, allocations: 78.7 kB / 431.7 MB, free: 5.117 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001113/0.2851, allocations: 64.56 kB / 431.8 MB, free: 5.055 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006288/0.2858, allocations: 364.4 kB / 432.2 MB, free: 4.672 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.876e-05/0.2858, allocations: 29.38 kB / 432.2 MB, free: 4.645 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.69e-05/0.2859, allocations: 32.38 kB / 432.2 MB, free: 4.613 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001436/0.2873, allocations: 0.6242 MB / 432.9 MB, free: 3.961 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.2873, allocations: 0 / 432.9 MB, free: 3.961 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.018e-05/0.2874, allocations: 19.94 kB / 432.9 MB, free: 3.941 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.202e-05/0.2874, allocations: 8 kB / 432.9 MB, free: 3.934 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001844/0.2892, allocations: 0.6322 MB / 433.5 MB, free: 3.301 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003658/0.2929, allocations: 1.951 MB / 435.5 MB, free: 1.254 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003673/0.2966, allocations: 0.8042 MB / 436.3 MB, free: 448 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001005/0.2976, allocations: 367.1 kB / 436.6 MB, free: 80 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.696e-05/0.2976, allocations: 4.328 kB / 436.6 MB, free: 76 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001135/0.2988, allocations: 452.3 kB / 437.1 MB, free: 15.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.204e-06/0.2988, allocations: 0 / 437.1 MB, free: 15.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.01331/0.3121, allocations: 2.202 MB / 439.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.462e-05/0.3121, allocations: 81.11 kB / 439.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005181/0.3127, allocations: 409.9 kB / 439.8 MB, free: 12.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.172e-05/0.3127, allocations: 33.7 kB / 439.8 MB, free: 12.85 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001932/0.3129, allocations: 236.9 kB / 440 MB, free: 12.61 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001342/0.313, allocations: 142.8 kB / 440.2 MB, free: 12.47 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001636/0.3132, allocations: 74.02 kB / 440.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.3134, allocations: 354.7 kB / 440.6 MB, free: 12.03 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009241/0.3143, allocations: 322.3 kB / 440.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000986/0.3153, allocations: 389.2 kB / 441.3 MB, free: 11.31 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001707/0.317, allocations: 0.5759 MB / 441.8 MB, free: 10.72 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.317, allocations: 4 kB / 441.9 MB, free: 10.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003487/0.3205, allocations: 0.9958 MB / 442.8 MB, free: 9.699 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.923e-05/0.3205, allocations: 41.69 kB / 442.9 MB, free: 9.652 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/0.3205, allocations: 0 / 442.9 MB, free: 9.652 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001195/0.3217, allocations: 396 kB / 443.3 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004847/0.3222, allocations: 87.86 kB / 443.4 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008074/0.3303, allocations: 3.506 MB / 446.9 MB, free: 5.562 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006869/0.331, allocations: 87.8 kB / 447 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.372e-05/0.331, allocations: 12 kB / 447 MB, free: 5.465 MB / 350.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.0002528/0.3313, allocations: 179 kB / 447.1 MB, free: 5.281 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.215e-05/0.3314, allocations: 51.67 kB / 447.2 MB, free: 5.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001051/0.3315, allocations: 56.45 kB / 447.2 MB, free: 5.176 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.3315, allocations: 8 kB / 447.3 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.055e-06/0.3315, allocations: 0 / 447.3 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.3315, allocations: 3.938 kB / 447.3 MB, free: 5.164 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006222/0.3321, allocations: 484.7 kB / 447.7 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.3321, allocations: 3.938 kB / 447.7 MB, free: 4.645 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004943/0.3326, allocations: 87.86 kB / 447.8 MB, free: 4.559 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001134/0.3337, allocations: 392.5 kB / 448.2 MB, free: 4.172 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.041e-05/0.3338, allocations: 11.98 kB / 448.2 MB, free: 4.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007959/0.3417, allocations: 3.488 MB / 451.7 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3417, allocations: 0 / 451.7 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005644/0.3474, allocations: 1.446 MB / 453.1 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002721/0.3477, allocations: 103.6 kB / 453.2 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.451e-05/0.3477, allocations: 15.94 kB / 453.3 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005443/0.3483, allocations: 71.95 kB / 453.3 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001502/0.3484, allocations: 55.91 kB / 453.4 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.12e-05/0.3485, allocations: 19.92 kB / 453.4 MB, free: 14.83 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003491/0.3488, allocations: 287.2 kB / 453.7 MB, free: 14.55 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3488, allocations: 4 kB / 453.7 MB, free: 14.55 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006104/0.3494, allocations: 171.8 kB / 453.9 MB, free: 14.38 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.005978/0.3554, allocations: 2.006 MB / 455.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002649/0.3581, allocations: 0.9323 MB / 456.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.3581, allocations: 0 / 456.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001531/0.3596, allocations: 0.545 MB / 457.3 MB, free: 10.82 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005182/0.3601, allocations: 88.08 kB / 457.4 MB, free: 10.73 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01449/0.3746, allocations: 5.92 MB / 463.3 MB, free: 4.684 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002457/0.3749, allocations: 232.8 kB / 463.6 MB, free: 4.434 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002483/0.3751, allocations: 43.39 kB / 463.6 MB, free: 4.391 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002622/0.3754, allocations: 163.4 kB / 463.8 MB, free: 4.23 MB / 366.1 MB Notification: Performance of SimCode: time 1.202e-06/0.3754, allocations: 4 kB / 463.8 MB, free: 4.227 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05186/0.4272, allocations: 18.84 MB / 482.6 MB, free: 1.645 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.94/13.36, allocations: 6.406 kB / 482.6 MB, free: 1.645 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.85490735201165] Failed to read output from testmodel.py, exit status != 0: ['time', 'L.i', 'simpleTriac.thyristor.vControl', 'simpleTriac.thyristor1.vControl'] 13.492939986754209 13.521306593 13.234113548 Calling exit ...