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.001384/0.001384, allocations: 115.9 kB / 20.43 MB, free: 1.445 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.001362/0.001362, allocations: 190.9 kB / 23.72 MB, free: 4.695 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.405/1.405, allocations: 225.6 MB / 252.5 MB, free: 13 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.001538/0.001538, allocations: 51.92 kB / 370.5 MB, free: 9.828 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2671/0.2686, allocations: 52.18 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005668/0.2743, allocations: 4.094 MB / 426.7 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001999/0.2763, allocations: 1.017 MB / 427.8 MB, free: 9.473 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002121/0.2765, allocations: 4 kB / 427.8 MB, free: 9.469 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002407/0.2767, allocations: 91.12 kB / 427.8 MB, free: 9.379 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003391/0.2771, allocations: 190.4 kB / 428 MB, free: 9.191 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005182/0.2776, allocations: 211.7 kB / 428.2 MB, free: 8.984 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008443/0.2784, allocations: 0.8095 MB / 429 MB, free: 8.172 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002662/0.2787, allocations: 126.4 kB / 429.2 MB, free: 8.043 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004514/0.2792, allocations: 314.9 kB / 429.5 MB, free: 7.734 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004606/0.2796, allocations: 358.7 kB / 429.8 MB, free: 7.383 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001099/0.2797, allocations: 80 kB / 429.9 MB, free: 7.305 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001121/0.2798, allocations: 80 kB / 430 MB, free: 7.227 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001504/0.28, allocations: 171.4 kB / 430.2 MB, free: 7.059 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00032/0.2803, allocations: 330.5 kB / 430.5 MB, free: 6.734 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008664/0.2812, allocations: 0.8401 MB / 431.3 MB, free: 5.895 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.2812, allocations: 4 kB / 431.3 MB, free: 5.891 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2812, allocations: 4 kB / 431.3 MB, free: 5.887 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.147e-05/0.2812, allocations: 0 / 431.3 MB, free: 5.887 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.002747/0.2839, allocations: 0.9623 MB / 432.3 MB, free: 4.887 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.266e-05/0.284, allocations: 12.03 kB / 432.3 MB, free: 4.875 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001081/0.2841, allocations: 70.72 kB / 432.4 MB, free: 4.797 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001246/0.2842, allocations: 64.56 kB / 432.4 MB, free: 4.734 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007227/0.285, allocations: 372.3 kB / 432.8 MB, free: 4.344 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.515e-05/0.285, allocations: 29.38 kB / 432.8 MB, free: 4.316 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.431e-05/0.2851, allocations: 40.38 kB / 432.9 MB, free: 4.277 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001498/0.2866, allocations: 0.5952 MB / 433.5 MB, free: 3.656 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.068e-05/0.2866, allocations: 7.922 kB / 433.5 MB, free: 3.648 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.43e-05/0.2867, allocations: 16 kB / 433.5 MB, free: 3.633 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.344e-05/0.2867, allocations: 8 kB / 433.5 MB, free: 3.625 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001893/0.2886, allocations: 0.6206 MB / 434.1 MB, free: 3.004 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004017/0.2926, allocations: 2.103 MB / 436.2 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003914/0.2965, allocations: 0.8056 MB / 437 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001065/0.2976, allocations: 357.3 kB / 437.4 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.172e-05/0.2976, allocations: 12.31 kB / 437.4 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001136/0.2987, allocations: 434.5 kB / 437.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.773e-06/0.2987, allocations: 0 / 437.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.01464/0.3134, allocations: 2.198 MB / 440 MB, free: 12.97 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.06e-05/0.3135, allocations: 85.05 kB / 440.1 MB, free: 12.87 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000647/0.3141, allocations: 406 kB / 440.5 MB, free: 12.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001018/0.3142, allocations: 33.7 kB / 440.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002353/0.3145, allocations: 244.7 kB / 440.7 MB, free: 12.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000149/0.3146, allocations: 138.8 kB / 440.9 MB, free: 12.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001745/0.3148, allocations: 70.06 kB / 441 MB, free: 11.97 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001791/0.315, allocations: 358.7 kB / 441.3 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009267/0.3159, allocations: 292.6 kB / 441.6 MB, free: 11.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009322/0.3168, allocations: 333.8 kB / 441.9 MB, free: 10.99 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001769/0.3186, allocations: 0.5759 MB / 442.5 MB, free: 10.4 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.3186, allocations: 0 / 442.5 MB, free: 10.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0037/0.3223, allocations: 0.9746 MB / 443.5 MB, free: 9.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.874e-05/0.3224, allocations: 33.7 kB / 443.5 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.3224, allocations: 0 / 443.5 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001235/0.3236, allocations: 396.5 kB / 443.9 MB, free: 8.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004822/0.3241, allocations: 87.86 kB / 444 MB, free: 8.895 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008596/0.3327, allocations: 3.573 MB / 447.5 MB, free: 5.215 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007482/0.3334, allocations: 87.8 kB / 447.6 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.706e-05/0.3335, allocations: 12 kB / 447.6 MB, free: 5.117 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.0002854/0.3338, allocations: 183 kB / 447.8 MB, free: 4.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.9e-05/0.3338, allocations: 51.67 kB / 447.9 MB, free: 4.879 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000128/0.334, allocations: 52.47 kB / 447.9 MB, free: 4.828 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.259e-06/0.334, allocations: 4 kB / 447.9 MB, free: 4.824 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.334, allocations: 4 kB / 447.9 MB, free: 4.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.334, allocations: 3.984 kB / 447.9 MB, free: 4.816 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000762/0.3347, allocations: 0.594 MB / 448.5 MB, free: 4.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.3348, allocations: 0 / 448.5 MB, free: 4.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004915/0.3352, allocations: 79.86 kB / 448.6 MB, free: 4.102 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001125/0.3364, allocations: 396.6 kB / 449 MB, free: 3.711 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.805e-05/0.3364, allocations: 4 kB / 449 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008388/0.3448, allocations: 3.562 MB / 452.6 MB, free: 32 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.3448, allocations: 0 / 452.6 MB, free: 32 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006008/0.3508, allocations: 1.457 MB / 454 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003198/0.3511, allocations: 111.5 kB / 454.1 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.394e-05/0.3512, allocations: 7.938 kB / 454.1 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005913/0.3518, allocations: 75.91 kB / 454.2 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001652/0.352, allocations: 51.91 kB / 454.3 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.605e-05/0.352, allocations: 8 kB / 454.3 MB, free: 14.3 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000362/0.3524, allocations: 295.1 kB / 454.6 MB, free: 14.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3524, allocations: 0 / 454.6 MB, free: 14.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000662/0.353, allocations: 171.9 kB / 454.7 MB, free: 13.85 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.006493/0.3595, allocations: 2.006 MB / 456.7 MB, free: 11.8 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002782/0.3623, allocations: 0.8995 MB / 457.6 MB, free: 10.88 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.3623, allocations: 4 kB / 457.6 MB, free: 10.88 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001508/0.3638, allocations: 0.5411 MB / 458.2 MB, free: 10.32 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005257/0.3643, allocations: 97.42 kB / 458.3 MB, free: 10.22 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01539/0.3797, allocations: 5.811 MB / 464.1 MB, free: 4.316 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005189/0.3802, allocations: 0.8355 MB / 464.9 MB, free: 3.457 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002654/0.3805, allocations: 43.41 kB / 465 MB, free: 3.414 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002671/0.3808, allocations: 163.4 kB / 465.1 MB, free: 3.254 MB / 366.1 MB Notification: Performance of SimCode: time 1.252e-06/0.3808, allocations: 0 / 465.1 MB, free: 3.254 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05626/0.437, allocations: 18.75 MB / 483.9 MB, free: 0.7266 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.43/13.87, allocations: 0 / 483.9 MB, free: 0.7266 MB / 382.1 MB " [Timeout remaining time 646] (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: 16.28559311999925] Failed to read output from testmodel.py, exit status != 0: ['time', 'L.i', 'simpleTriac.thyristor.vControl', 'simpleTriac.thyristor1.vControl'] 13.992590668000048 14.008848922 13.724320032 Calling exit ...