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.0018/0.0018, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002519/0.002519, allocations: 210.6 kB / 23.72 MB, free: 4.391 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.46/1.46, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.001715/0.001715, allocations: 47.92 kB / 377.7 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2705/0.2722, allocations: 53.36 MB / 431.1 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005335/0.2775, allocations: 3.706 MB / 434.8 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002065/0.2796, allocations: 1.032 MB / 435.8 MB, free: 1.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003638/0.2799, allocations: 11.94 kB / 435.8 MB, free: 1.898 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002772/0.2802, allocations: 83.14 kB / 435.9 MB, free: 1.816 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004465/0.2807, allocations: 194.4 kB / 436.1 MB, free: 1.625 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005446/0.2812, allocations: 223.7 kB / 436.3 MB, free: 1.406 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00091/0.2821, allocations: 0.825 MB / 437.2 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002552/0.2824, allocations: 117.4 kB / 437.3 MB, free: 468 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005269/0.2829, allocations: 326.9 kB / 437.6 MB, free: 140 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005217/0.2834, allocations: 326.6 kB / 437.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001416/0.2836, allocations: 80 kB / 438 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001765/0.2837, allocations: 88 kB / 438.1 MB, free: 15.65 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001557/0.2839, allocations: 155.5 kB / 438.2 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000337/0.2842, allocations: 282.8 kB / 438.5 MB, free: 15.22 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008996/0.2851, allocations: 0.868 MB / 439.4 MB, free: 14.35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2851, allocations: 0 / 439.4 MB, free: 14.35 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2851, allocations: 3.938 kB / 439.4 MB, free: 14.35 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.21e-05/0.2852, allocations: 4 kB / 439.4 MB, free: 14.34 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.002702/0.2879, allocations: 0.9779 MB / 440.4 MB, free: 13.33 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.629e-05/0.2879, allocations: 8.031 kB / 440.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001015/0.288, allocations: 70.72 kB / 440.4 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002288/0.2882, allocations: 76.55 kB / 440.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006575/0.2889, allocations: 376.3 kB / 440.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.939e-05/0.2889, allocations: 29.38 kB / 440.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.577e-05/0.289, allocations: 32.38 kB / 440.9 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001441/0.2904, allocations: 0.6281 MB / 441.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/0.2905, allocations: 3.938 kB / 441.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.039e-05/0.2905, allocations: 16 kB / 441.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.086e-05/0.2905, allocations: 8 kB / 441.6 MB, free: 12.03 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001901/0.2924, allocations: 0.6362 MB / 442.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003976/0.2964, allocations: 1.959 MB / 444.2 MB, free: 9.336 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00364/0.3, allocations: 0.8338 MB / 445 MB, free: 8.496 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001012/0.301, allocations: 369.3 kB / 445.4 MB, free: 8.133 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.035e-05/0.3011, allocations: 4.328 kB / 445.4 MB, free: 8.129 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001183/0.3023, allocations: 468.3 kB / 445.8 MB, free: 7.648 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.415e-06/0.3023, allocations: 0 / 445.8 MB, free: 7.648 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.0136/0.3159, allocations: 2.305 MB / 448.1 MB, free: 5.332 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.22e-05/0.3159, allocations: 85.11 kB / 448.2 MB, free: 5.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005909/0.3165, allocations: 413.9 kB / 448.6 MB, free: 4.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.386e-05/0.3166, allocations: 33.7 kB / 448.7 MB, free: 4.781 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002129/0.3168, allocations: 240.8 kB / 448.9 MB, free: 4.539 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001742/0.317, allocations: 142.8 kB / 449 MB, free: 4.398 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001734/0.3172, allocations: 70.06 kB / 449.1 MB, free: 4.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001757/0.3173, allocations: 362.7 kB / 449.5 MB, free: 3.957 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009943/0.3183, allocations: 330.3 kB / 449.8 MB, free: 3.629 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009991/0.3193, allocations: 389.5 kB / 450.2 MB, free: 3.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001793/0.3211, allocations: 0.5913 MB / 450.8 MB, free: 2.625 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.3211, allocations: 4 kB / 450.8 MB, free: 2.621 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003575/0.3247, allocations: 1.027 MB / 451.8 MB, free: 1.574 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.041e-05/0.3248, allocations: 36.67 kB / 451.8 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/0.3248, allocations: 0 / 451.8 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001338/0.3261, allocations: 444.4 kB / 452.3 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004747/0.3266, allocations: 91.86 kB / 452.3 MB, free: 1.008 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008655/0.3352, allocations: 3.632 MB / 456 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007967/0.336, allocations: 99.73 kB / 456.1 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.238e-05/0.3361, allocations: 8 kB / 456.1 MB, free: 13.16 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.0003781/0.3365, allocations: 186.5 kB / 456.3 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001414/0.3366, allocations: 51.67 kB / 456.3 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000161/0.3368, allocations: 56.53 kB / 456.4 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.481e-06/0.3368, allocations: 4 kB / 456.4 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.3368, allocations: 0 / 456.4 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.3368, allocations: 3.984 kB / 456.4 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007484/0.3376, allocations: 492.5 kB / 456.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.3376, allocations: 4 kB / 456.9 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004819/0.3381, allocations: 83.86 kB / 456.9 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001196/0.3393, allocations: 432.5 kB / 457.4 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.007e-05/0.3393, allocations: 11.98 kB / 457.4 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008484/0.3478, allocations: 3.628 MB / 461 MB, free: 8.074 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.618e-06/0.3478, allocations: 4 kB / 461 MB, free: 8.07 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00581/0.3536, allocations: 1.504 MB / 462.5 MB, free: 6.543 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000308/0.3539, allocations: 103.6 kB / 462.6 MB, free: 6.441 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.616e-05/0.354, allocations: 11.94 kB / 462.6 MB, free: 6.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005728/0.3546, allocations: 75.91 kB / 462.7 MB, free: 6.355 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001445/0.3547, allocations: 51.91 kB / 462.8 MB, free: 6.305 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.825e-05/0.3548, allocations: 11.98 kB / 462.8 MB, free: 6.293 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003589/0.3551, allocations: 291.2 kB / 463 MB, free: 6.008 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3551, allocations: 7.938 kB / 463.1 MB, free: 6 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006297/0.3558, allocations: 183.8 kB / 463.2 MB, free: 5.82 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.005993/0.3617, allocations: 2.045 MB / 465.3 MB, free: 3.742 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002683/0.3644, allocations: 0.9713 MB / 466.3 MB, free: 2.738 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3644, allocations: 4 kB / 466.3 MB, free: 2.734 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001581/0.366, allocations: 0.5685 MB / 466.8 MB, free: 2.152 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000486/0.3665, allocations: 97.67 kB / 466.9 MB, free: 2.059 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01504/0.3815, allocations: 6.081 MB / 473 MB, free: 11.85 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002898/0.3818, allocations: 236.9 kB / 473.2 MB, free: 11.59 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002724/0.3821, allocations: 39.39 kB / 473.3 MB, free: 11.55 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002914/0.3824, allocations: 175.4 kB / 473.4 MB, free: 11.38 MB / 382.1 MB Notification: Performance of SimCode: time 1.533e-06/0.3824, allocations: 0 / 473.4 MB, free: 11.38 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06236/0.4448, allocations: 19.13 MB / 492.6 MB, free: 8.508 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.89/13.33, allocations: 14.27 kB / 492.6 MB, free: 8.5 MB / 398.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.847049865406007] Failed to read output from testmodel.py, exit status != 0: ['time', 'L.i', 'simpleTriac.thyristor.vControl', 'simpleTriac.thyristor1.vControl'] 13.456266024149954 13.472514997 13.18412624 Calling exit ...