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.00126/0.00126, allocations: 115.8 kB / 20.43 MB, free: 1.449 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.001461/0.001461, allocations: 212.7 kB / 23.74 MB, free: 4.66 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.406/1.406, allocations: 230.6 MB / 257.5 MB, free: 8.004 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.001474/0.001474, allocations: 47.92 kB / 377.8 MB, free: 3.113 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2638/0.2652, allocations: 53.37 MB / 431.1 MB, free: 6.828 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005807/0.2711, allocations: 4.138 MB / 435.3 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001989/0.273, allocations: 1.071 MB / 436.4 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002126/0.2733, allocations: 11.94 kB / 436.4 MB, free: 1.582 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002259/0.2735, allocations: 83.14 kB / 436.5 MB, free: 1.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003237/0.2738, allocations: 190.4 kB / 436.6 MB, free: 1.312 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005313/0.2743, allocations: 223.7 kB / 436.9 MB, free: 1.094 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009075/0.2752, allocations: 0.8251 MB / 437.7 MB, free: 272 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002451/0.2755, allocations: 117.4 kB / 437.8 MB, free: 148 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000476/0.276, allocations: 334.9 kB / 438.1 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004565/0.2764, allocations: 362.6 kB / 438.5 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001065/0.2765, allocations: 80 kB / 438.6 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000148/0.2767, allocations: 95.97 kB / 438.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001411/0.2768, allocations: 155.5 kB / 438.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003081/0.2771, allocations: 334.5 kB / 439.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009707/0.2781, allocations: 0.8679 MB / 440 MB, free: 13.94 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.2781, allocations: 3.984 kB / 440 MB, free: 13.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2781, allocations: 0 / 440 MB, free: 13.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.317e-06/0.2781, allocations: 0 / 440 MB, free: 13.93 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.002694/0.2808, allocations: 0.9779 MB / 441 MB, free: 12.92 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.936e-05/0.2809, allocations: 12.03 kB / 441 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001005/0.281, allocations: 74.66 kB / 441.1 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002217/0.2812, allocations: 68.55 kB / 441.1 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006322/0.2818, allocations: 368.4 kB / 441.5 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.67e-05/0.2818, allocations: 29.38 kB / 441.5 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.409e-05/0.2819, allocations: 36.38 kB / 441.6 MB, free: 12.31 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001444/0.2834, allocations: 0.6069 MB / 442.2 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.485e-05/0.2834, allocations: 3.938 kB / 442.2 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5e-05/0.2834, allocations: 16 kB / 442.2 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.134e-05/0.2835, allocations: 8 kB / 442.2 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001852/0.2853, allocations: 0.6401 MB / 442.8 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00378/0.2891, allocations: 2.122 MB / 444.9 MB, free: 8.793 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003847/0.2929, allocations: 0.8237 MB / 445.8 MB, free: 7.961 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001018/0.2939, allocations: 375 kB / 446.1 MB, free: 7.594 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.402e-05/0.294, allocations: 8.312 kB / 446.1 MB, free: 7.586 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001112/0.2951, allocations: 442.5 kB / 446.6 MB, free: 7.137 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.655e-06/0.2951, allocations: 4 kB / 446.6 MB, free: 7.133 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.01432/0.3094, allocations: 2.305 MB / 448.9 MB, free: 4.816 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.981e-05/0.3095, allocations: 81.11 kB / 449 MB, free: 4.719 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005611/0.3101, allocations: 417.9 kB / 449.4 MB, free: 4.301 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.907e-05/0.3101, allocations: 37.7 kB / 449.4 MB, free: 4.258 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001941/0.3103, allocations: 232.9 kB / 449.6 MB, free: 4.023 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001387/0.3105, allocations: 138.8 kB / 449.8 MB, free: 3.887 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001569/0.3106, allocations: 70.06 kB / 449.8 MB, free: 3.809 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000192/0.3108, allocations: 358.7 kB / 450.2 MB, free: 3.449 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008982/0.3117, allocations: 300.6 kB / 450.5 MB, free: 3.156 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009298/0.3126, allocations: 342.1 kB / 450.8 MB, free: 2.816 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001708/0.3143, allocations: 0.599 MB / 451.4 MB, free: 2.203 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.3143, allocations: 0 / 451.4 MB, free: 2.203 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003577/0.3179, allocations: 0.9941 MB / 452.4 MB, free: 1.195 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.625e-05/0.318, allocations: 37.69 kB / 452.5 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.318, allocations: 0 / 452.5 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001276/0.3192, allocations: 434.7 kB / 452.9 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004641/0.3197, allocations: 87.92 kB / 453 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008725/0.3284, allocations: 3.727 MB / 456.7 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006727/0.3291, allocations: 95.73 kB / 456.8 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.028e-05/0.3292, allocations: 12 kB / 456.8 MB, free: 12.7 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.0002885/0.3294, allocations: 174.5 kB / 457 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.804e-05/0.3295, allocations: 55.67 kB / 457 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001145/0.3296, allocations: 48.53 kB / 457.1 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.648e-06/0.3296, allocations: 8 kB / 457.1 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.085e-06/0.3296, allocations: 3.938 kB / 457.1 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.395e-06/0.3297, allocations: 7.984 kB / 457.1 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007183/0.3304, allocations: 0.5901 MB / 457.7 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.668e-06/0.3304, allocations: 4 kB / 457.7 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004661/0.3308, allocations: 79.92 kB / 457.8 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001153/0.332, allocations: 432.6 kB / 458.2 MB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.253e-05/0.332, allocations: 7.984 kB / 458.2 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008353/0.3404, allocations: 3.717 MB / 461.9 MB, free: 7.426 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.3404, allocations: 3.938 kB / 461.9 MB, free: 7.422 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005866/0.3463, allocations: 1.496 MB / 463.4 MB, free: 5.902 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002647/0.3465, allocations: 107.6 kB / 463.5 MB, free: 5.797 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.776e-05/0.3466, allocations: 7.938 kB / 463.5 MB, free: 5.789 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005628/0.3472, allocations: 75.91 kB / 463.6 MB, free: 5.715 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001574/0.3473, allocations: 51.91 kB / 463.6 MB, free: 5.664 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.357e-05/0.3474, allocations: 15.98 kB / 463.7 MB, free: 5.648 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004106/0.3478, allocations: 291.2 kB / 463.9 MB, free: 5.367 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3478, allocations: 0 / 463.9 MB, free: 5.367 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006288/0.3484, allocations: 179.8 kB / 464.1 MB, free: 5.191 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.006329/0.3547, allocations: 2.045 MB / 466.2 MB, free: 3.113 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002841/0.3576, allocations: 0.9502 MB / 467.1 MB, free: 2.137 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.3576, allocations: 0 / 467.1 MB, free: 2.137 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001594/0.3592, allocations: 0.5723 MB / 467.7 MB, free: 1.551 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006307/0.3598, allocations: 92.45 kB / 467.8 MB, free: 1.465 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01517/0.375, allocations: 5.957 MB / 473.7 MB, free: 11.4 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004697/0.3754, allocations: 0.8394 MB / 474.6 MB, free: 10.54 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002207/0.3757, allocations: 43.39 kB / 474.6 MB, free: 10.49 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002568/0.3759, allocations: 167.4 kB / 474.8 MB, free: 10.33 MB / 382.1 MB Notification: Performance of SimCode: time 1.282e-06/0.3759, allocations: 0 / 474.8 MB, free: 10.33 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05501/0.4309, allocations: 19 MB / 493.8 MB, free: 7.555 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.07/13.5, allocations: 15.98 kB / 493.8 MB, free: 7.539 MB / 398.1 MB " [Timeout remaining time 646] (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.947543243000837] Failed to read output from testmodel.py, exit status != 0: ['time', 'L.i', 'simpleTriac.thyristor.vControl', 'simpleTriac.thyristor1.vControl'] 13.625340702001267 13.647314327 13.36529249 Calling exit ...