Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001855/0.001855, allocations: 112.7 kB / 20.43 MB, free: 1.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002288/0.002288, allocations: 214 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.472/1.472, allocations: 230.5 MB / 257.4 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00192/0.00192, allocations: 64.12 kB / 377.8 MB, free: 3.023 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.2717, allocations: 53.42 MB / 431.2 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005456/0.2772, allocations: 4.128 MB / 435.3 MB, free: 2.555 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002011/0.2792, allocations: 1.071 MB / 436.4 MB, free: 1.477 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002343/0.2794, allocations: 15.94 kB / 436.4 MB, free: 1.461 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000236/0.2796, allocations: 83.14 kB / 436.5 MB, free: 1.379 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000329/0.28, allocations: 186.5 kB / 436.7 MB, free: 1.195 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005102/0.2805, allocations: 231.6 kB / 436.9 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008734/0.2814, allocations: 0.829 MB / 437.7 MB, free: 140 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002364/0.2816, allocations: 118.4 kB / 437.8 MB, free: 16 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004702/0.2821, allocations: 331 kB / 438.2 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004501/0.2825, allocations: 358.6 kB / 438.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001067/0.2826, allocations: 84 kB / 438.6 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001469/0.2828, allocations: 88 kB / 438.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000145/0.2829, allocations: 167.4 kB / 438.9 MB, free: 15.01 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003153/0.2832, allocations: 342.5 kB / 439.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008692/0.2841, allocations: 0.8595 MB / 440 MB, free: 13.81 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.2841, allocations: 0 / 440 MB, free: 13.81 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.477e-06/0.2841, allocations: 4 kB / 440 MB, free: 13.81 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.339e-05/0.2841, allocations: 0 / 440 MB, free: 13.81 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.002609/0.2867, allocations: 0.974 MB / 441 MB, free: 12.8 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.2868, allocations: 12.03 kB / 441 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001021/0.2869, allocations: 82.7 kB / 441.1 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002145/0.2871, allocations: 68.56 kB / 441.2 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006394/0.2877, allocations: 372.4 kB / 441.5 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.592e-05/0.2878, allocations: 29.38 kB / 441.6 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.088e-05/0.2878, allocations: 36.38 kB / 441.6 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001383/0.2892, allocations: 0.6069 MB / 442.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.338e-05/0.2892, allocations: 0 / 442.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.984e-05/0.2893, allocations: 19.98 kB / 442.2 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.624e-05/0.2893, allocations: 8 kB / 442.2 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00186/0.2912, allocations: 0.644 MB / 442.9 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003919/0.2951, allocations: 2.115 MB / 445 MB, free: 8.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003819/0.2989, allocations: 0.8272 MB / 445.8 MB, free: 7.828 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001034/0.2999, allocations: 373.3 kB / 446.2 MB, free: 7.461 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.329e-05/0.3, allocations: 8.312 kB / 446.2 MB, free: 7.453 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001127/0.3011, allocations: 437.2 kB / 446.6 MB, free: 7.012 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.535e-06/0.3011, allocations: 0 / 446.6 MB, free: 7.012 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.01459/0.3157, allocations: 2.301 MB / 448.9 MB, free: 4.699 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.41e-05/0.3158, allocations: 85.11 kB / 449 MB, free: 4.598 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006808/0.3165, allocations: 421.9 kB / 449.4 MB, free: 4.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000129/0.3166, allocations: 29.7 kB / 449.5 MB, free: 4.145 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002294/0.3168, allocations: 236.9 kB / 449.7 MB, free: 3.906 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001599/0.317, allocations: 142.8 kB / 449.8 MB, free: 3.766 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000185/0.3172, allocations: 74.05 kB / 449.9 MB, free: 3.684 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001767/0.3174, allocations: 354.7 kB / 450.2 MB, free: 3.328 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009553/0.3183, allocations: 296.6 kB / 450.5 MB, free: 3.039 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009165/0.3192, allocations: 346 kB / 450.9 MB, free: 2.695 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001802/0.321, allocations: 0.5952 MB / 451.5 MB, free: 2.086 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.321, allocations: 4 kB / 451.5 MB, free: 2.082 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.00373/0.3248, allocations: 0.9902 MB / 452.5 MB, free: 1.078 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.597e-05/0.3248, allocations: 37.64 kB / 452.5 MB, free: 1.035 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.3248, allocations: 0 / 452.5 MB, free: 1.035 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001343/0.3262, allocations: 440.5 kB / 452.9 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005063/0.3267, allocations: 91.86 kB / 453 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00915/0.3358, allocations: 3.721 MB / 456.7 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00082/0.3367, allocations: 99.73 kB / 456.8 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.93e-05/0.3367, allocations: 16 kB / 456.9 MB, free: 12.57 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.0003027/0.337, allocations: 170.5 kB / 457 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.065e-05/0.3371, allocations: 55.66 kB / 457.1 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000123/0.3372, allocations: 56.53 kB / 457.1 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.3372, allocations: 4 kB / 457.1 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.3372, allocations: 0 / 457.1 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.3372, allocations: 3.984 kB / 457.1 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007624/0.338, allocations: 0.5862 MB / 457.7 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.338, allocations: 0 / 457.7 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000476/0.3385, allocations: 91.84 kB / 457.8 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001177/0.3397, allocations: 428.6 kB / 458.2 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.607e-05/0.3397, allocations: 15.98 kB / 458.2 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008633/0.3483, allocations: 3.698 MB / 461.9 MB, free: 7.312 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3483, allocations: 0 / 461.9 MB, free: 7.312 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005926/0.3543, allocations: 1.504 MB / 463.4 MB, free: 5.785 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002808/0.3545, allocations: 99.62 kB / 463.5 MB, free: 5.688 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.411e-05/0.3546, allocations: 15.94 kB / 463.6 MB, free: 5.672 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005868/0.3552, allocations: 75.91 kB / 463.6 MB, free: 5.598 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001463/0.3554, allocations: 47.91 kB / 463.7 MB, free: 5.551 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.826e-05/0.3554, allocations: 12 kB / 463.7 MB, free: 5.539 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003523/0.3558, allocations: 295.1 kB / 464 MB, free: 5.254 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3558, allocations: 4 kB / 464 MB, free: 5.25 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006227/0.3564, allocations: 179.8 kB / 464.2 MB, free: 5.074 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.00638/0.3628, allocations: 2.056 MB / 466.2 MB, free: 2.988 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002778/0.3655, allocations: 0.9385 MB / 467.2 MB, free: 2.023 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.3655, allocations: 0 / 467.2 MB, free: 2.023 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001611/0.3672, allocations: 0.58 MB / 467.7 MB, free: 1.43 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005719/0.3677, allocations: 93.7 kB / 467.8 MB, free: 1.34 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0162/0.3839, allocations: 5.953 MB / 473.8 MB, free: 11.27 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004835/0.3844, allocations: 0.8394 MB / 474.6 MB, free: 10.41 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002383/0.3846, allocations: 43.39 kB / 474.7 MB, free: 10.36 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000257/0.3849, allocations: 167.4 kB / 474.8 MB, free: 10.2 MB / 382.1 MB Notification: Performance of SimCode: time 1.393e-06/0.3849, allocations: 0 / 474.8 MB, free: 10.2 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05549/0.4404, allocations: 19 MB / 493.8 MB, free: 7.375 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.16/13.6, allocations: 7.922 kB / 493.8 MB, free: 7.367 MB / 398.1 MB " [Timeout remaining time 646] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.182888130999345] Failed to read output from testmodel.py, exit status != 0: ['time', 'L.i', 'simpleTriac.thyristor.vControl', 'simpleTriac.thyristor1.vControl'] 13.723486204999062 13.750754984 13.461612933 Calling exit ...