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.0008273/0.0008273, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001127/0.001127, allocations: 174 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.911/0.911, allocations: 177.1 MB / 204.2 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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 2.175e-06/2.175e-06, allocations: 0 / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.098e-05/2.316e-05, allocations: 4.672 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004624/0.004647, allocations: 3.732 MB / 328.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002369/0.007015, allocations: 1.028 MB / 329.3 MB, free: 11.15 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003074/0.007323, allocations: 11.94 kB / 329.3 MB, free: 11.14 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002022/0.007525, allocations: 87.08 kB / 329.4 MB, free: 11.05 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000273/0.007798, allocations: 198.3 kB / 329.6 MB, free: 10.86 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005158/0.008314, allocations: 231.5 kB / 329.9 MB, free: 10.63 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006252/0.008939, allocations: 0.8519 MB / 330.7 MB, free: 9.773 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002262/0.009165, allocations: 117.5 kB / 330.8 MB, free: 9.66 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004961/0.009661, allocations: 463 kB / 331.3 MB, free: 9.207 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002729/0.009934, allocations: 287.3 kB / 331.6 MB, free: 8.926 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.973e-05/0.01001, allocations: 80 kB / 331.6 MB, free: 8.848 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001233/0.01014, allocations: 91.94 kB / 331.7 MB, free: 8.758 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.316e-05/0.01023, allocations: 167.4 kB / 331.9 MB, free: 8.594 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001684/0.0104, allocations: 239.4 kB / 332.1 MB, free: 8.359 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007012/0.0111, allocations: 0.9037 MB / 333 MB, free: 7.453 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.0111, allocations: 0 / 333 MB, free: 7.453 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.816e-06/0.01111, allocations: 4 kB / 333 MB, free: 7.449 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.217e-06/0.01112, allocations: 0 / 333 MB, free: 7.449 MB / 298.7 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.001972/0.01309, allocations: 0.981 MB / 334 MB, free: 6.434 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.01313, allocations: 8.031 kB / 334 MB, free: 6.426 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.986e-05/0.0132, allocations: 74.72 kB / 334.1 MB, free: 6.344 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000169/0.01337, allocations: 72.55 kB / 334.2 MB, free: 6.273 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000558/0.01393, allocations: 363.6 kB / 334.5 MB, free: 5.891 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.835e-05/0.01397, allocations: 33.36 kB / 334.5 MB, free: 5.859 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.865e-05/0.01403, allocations: 40.38 kB / 334.6 MB, free: 5.82 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000958/0.01499, allocations: 0.6246 MB / 335.2 MB, free: 5.168 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.01501, allocations: 192 / 335.2 MB, free: 5.168 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.242e-05/0.01505, allocations: 20.12 kB / 335.2 MB, free: 5.148 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/0.01506, allocations: 8 kB / 335.2 MB, free: 5.141 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001106/0.01617, allocations: 0.6362 MB / 335.9 MB, free: 4.504 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002397/0.01856, allocations: 1.955 MB / 337.8 MB, free: 2.457 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001922/0.02048, allocations: 0.8392 MB / 338.7 MB, free: 1.609 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006163/0.0211, allocations: 369.3 kB / 339 MB, free: 1.246 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.652e-05/0.02114, allocations: 4.328 kB / 339 MB, free: 1.242 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007076/0.02185, allocations: 472.2 kB / 339.5 MB, free: 0.7539 MB / 298.7 MB Notification: Performance of pre-optimization done (n=40): time 2.685e-06/0.02185, allocations: 0 / 339.5 MB, free: 0.7539 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.007717/0.02957, allocations: 2.301 MB / 341.8 MB, free: 14.44 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.459e-05/0.02964, allocations: 85.09 kB / 341.9 MB, free: 14.34 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000578/0.03022, allocations: 417.9 kB / 342.3 MB, free: 13.91 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.56e-05/0.03028, allocations: 37.7 kB / 342.3 MB, free: 13.87 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000202/0.03049, allocations: 236.9 kB / 342.6 MB, free: 13.64 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001423/0.03063, allocations: 134.8 kB / 342.7 MB, free: 13.5 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001695/0.0308, allocations: 74.05 kB / 342.8 MB, free: 13.42 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.03094, allocations: 354.7 kB / 343.1 MB, free: 13.07 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007128/0.03165, allocations: 326.4 kB / 343.4 MB, free: 12.74 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005702/0.03222, allocations: 405.8 kB / 343.8 MB, free: 12.32 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001463/0.03369, allocations: 0.5951 MB / 344.4 MB, free: 11.71 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.03369, allocations: 0 / 344.4 MB, free: 11.71 MB / 314.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.002008/0.0357, allocations: 1.027 MB / 345.4 MB, free: 10.66 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.051e-05/0.03574, allocations: 33.7 kB / 345.5 MB, free: 10.62 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/0.03575, allocations: 0 / 345.5 MB, free: 10.62 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008294/0.03658, allocations: 435.2 kB / 345.9 MB, free: 10.2 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002584/0.03684, allocations: 99.84 kB / 346 MB, free: 10.1 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005244/0.04208, allocations: 3.625 MB / 349.6 MB, free: 6.363 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004526/0.04253, allocations: 99.73 kB / 349.7 MB, free: 6.266 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.256e-05/0.04257, allocations: 11.98 kB / 349.7 MB, free: 6.254 MB / 314.7 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.0002387/0.04281, allocations: 173.7 kB / 349.9 MB, free: 6.074 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.167e-05/0.04287, allocations: 51.67 kB / 350 MB, free: 6.023 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.204e-05/0.04294, allocations: 64.52 kB / 350 MB, free: 5.961 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.04294, allocations: 4 kB / 350 MB, free: 5.957 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.04295, allocations: 0 / 350 MB, free: 5.957 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.107e-06/0.04295, allocations: 0 / 350 MB, free: 5.957 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004414/0.04339, allocations: 488.8 kB / 350.5 MB, free: 5.438 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.04339, allocations: 0 / 350.5 MB, free: 5.438 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002539/0.04365, allocations: 79.92 kB / 350.6 MB, free: 5.359 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008565/0.0445, allocations: 447.1 kB / 351 MB, free: 4.922 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.557e-05/0.04454, allocations: 4 kB / 351 MB, free: 4.918 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005175/0.04972, allocations: 3.631 MB / 354.6 MB, free: 1.176 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.04972, allocations: 0 / 354.6 MB, free: 1.176 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002976/0.05269, allocations: 1.5 MB / 356.1 MB, free: 15.65 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002051/0.0529, allocations: 103.6 kB / 356.2 MB, free: 15.55 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.503e-05/0.05294, allocations: 8 kB / 356.3 MB, free: 15.54 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002554/0.0532, allocations: 83.84 kB / 356.3 MB, free: 15.46 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.05331, allocations: 55.84 kB / 356.4 MB, free: 15.41 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.278e-05/0.05333, allocations: 12 kB / 356.4 MB, free: 15.39 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002546/0.05358, allocations: 295.1 kB / 356.7 MB, free: 15.11 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.05358, allocations: 0 / 356.7 MB, free: 15.11 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004675/0.05405, allocations: 175.8 kB / 356.9 MB, free: 14.94 MB / 330.7 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.003129/0.05718, allocations: 2.048 MB / 358.9 MB, free: 12.86 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001578/0.05876, allocations: 0.9675 MB / 359.9 MB, free: 11.86 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.05876, allocations: 0 / 359.9 MB, free: 11.86 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008884/0.05965, allocations: 0.5763 MB / 360.5 MB, free: 11.27 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004179/0.06007, allocations: 85.83 kB / 360.5 MB, free: 11.18 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008748/0.06882, allocations: 6.018 MB / 366.6 MB, free: 5.031 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001822/0.069, allocations: 248.8 kB / 366.8 MB, free: 4.762 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001848/0.06918, allocations: 43.41 kB / 366.8 MB, free: 4.719 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001853/0.06937, allocations: 168.4 kB / 367 MB, free: 4.555 MB / 330.7 MB Notification: Performance of SimCode: time 1.052e-06/0.06937, allocations: 0 / 367 MB, free: 4.555 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03484/0.1042, allocations: 19.21 MB / 386.2 MB, free: 1.57 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.222/8.326, allocations: 15.19 kB / 386.2 MB, free: 1.559 MB / 346.7 MB " [Timeout remaining time 652] (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: 11.160677487961948] Failed to read output from testmodel.py, exit status != 0: ['time', 'L.i', 'simpleTriac.thyristor.vControl', 'simpleTriac.thyristor1.vControl'] 8.425457421690226 8.435622603 8.421995855 Calling exit ...