Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.0008056/0.0008056, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008735/0.0008735, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9165/0.9165, allocations: 177 MB / 204.1 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] 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.ControlledSwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.154e-06/2.154e-06, allocations: 0 / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.075e-05/2.29e-05, allocations: 2.844 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003882/0.003905, allocations: 2.93 MB / 327.5 MB, free: 12.94 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001515/0.00542, allocations: 0.7943 MB / 328.3 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001224/0.005542, allocations: 4 kB / 328.3 MB, free: 12.13 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001749/0.005717, allocations: 59.44 kB / 328.3 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001389/0.005856, allocations: 110.9 kB / 328.4 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003374/0.006193, allocations: 119.7 kB / 328.5 MB, free: 11.85 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003037/0.006497, allocations: 441.9 kB / 329 MB, free: 11.41 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001845/0.006682, allocations: 96.3 kB / 329.1 MB, free: 11.32 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000278/0.00696, allocations: 251.5 kB / 329.3 MB, free: 11.07 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001506/0.00711, allocations: 123.6 kB / 329.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.19e-05/0.007152, allocations: 36 kB / 329.5 MB, free: 10.92 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.413e-05/0.007216, allocations: 36 kB / 329.5 MB, free: 10.88 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.088e-05/0.007267, allocations: 83.72 kB / 329.6 MB, free: 10.8 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.759e-05/0.007365, allocations: 131.7 kB / 329.7 MB, free: 10.67 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003775/0.007742, allocations: 438.6 kB / 330.1 MB, free: 10.24 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.007747, allocations: 0 / 330.1 MB, free: 10.24 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.007749, allocations: 0 / 330.1 MB, free: 10.24 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.695e-06/0.007757, allocations: 11.92 kB / 330.2 MB, free: 10.23 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.0007898/0.008547, allocations: 0.5828 MB / 330.7 MB, free: 9.613 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.008593, allocations: 11.98 kB / 330.8 MB, free: 9.602 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.748e-05/0.00865, allocations: 70.72 kB / 330.8 MB, free: 9.523 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001593/0.008809, allocations: 56.64 kB / 330.9 MB, free: 9.469 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003437/0.009153, allocations: 226.8 kB / 331.1 MB, free: 9.219 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.494e-05/0.009238, allocations: 140 kB / 331.2 MB, free: 9.059 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.662e-05/0.009275, allocations: 28.38 kB / 331.3 MB, free: 9.031 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003941/0.009669, allocations: 386.8 kB / 331.6 MB, free: 8.625 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.009679, allocations: 192 / 331.6 MB, free: 8.625 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.654e-05/0.009706, allocations: 19.94 kB / 331.7 MB, free: 8.605 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.009713, allocations: 8 kB / 331.7 MB, free: 8.598 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002851/0.009999, allocations: 218.5 kB / 331.9 MB, free: 8.383 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001266/0.01126, allocations: 1.245 MB / 333.1 MB, free: 7.047 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003098/0.01157, allocations: 159.4 kB / 333.3 MB, free: 6.883 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001115/0.01169, allocations: 84.77 kB / 333.4 MB, free: 6.797 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.345e-05/0.01171, allocations: 0 / 333.4 MB, free: 6.797 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002966/0.01201, allocations: 209.2 kB / 333.6 MB, free: 6.559 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.443e-06/0.01201, allocations: 0 / 333.6 MB, free: 6.559 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0007986/0.01281, allocations: 329.5 kB / 333.9 MB, free: 6.23 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.371e-05/0.01289, allocations: 110.8 kB / 334 MB, free: 6.098 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002161/0.01311, allocations: 277.7 kB / 334.3 MB, free: 5.82 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.147e-05/0.01313, allocations: 29.7 kB / 334.3 MB, free: 5.785 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/0.01323, allocations: 208.3 kB / 334.5 MB, free: 5.574 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.322e-05/0.01327, allocations: 75.41 kB / 334.6 MB, free: 5.5 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.635e-05/0.01334, allocations: 61.98 kB / 334.6 MB, free: 5.434 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0003769/0.01372, allocations: 338.8 kB / 335 MB, free: 5.094 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001114/0.01383, allocations: 80.62 kB / 335 MB, free: 5.016 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001605/0.01399, allocations: 224.9 kB / 335.3 MB, free: 4.738 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002326/0.01422, allocations: 243.5 kB / 335.5 MB, free: 4.465 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.01423, allocations: 4 kB / 335.5 MB, free: 4.461 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004062/0.01463, allocations: 340.4 kB / 335.8 MB, free: 4.121 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.01465, allocations: 11.94 kB / 335.9 MB, free: 4.109 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.261e-06/0.01466, allocations: 0 / 335.9 MB, free: 4.109 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000216/0.01488, allocations: 57.12 kB / 335.9 MB, free: 4.051 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001555/0.01503, allocations: 67.84 kB / 336 MB, free: 3.984 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000993/0.01602, allocations: 1.46 MB / 337.4 MB, free: 2.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001368/0.01616, allocations: 47.92 kB / 337.5 MB, free: 2.363 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.48e-05/0.01618, allocations: 12 kB / 337.5 MB, free: 2.352 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * 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 {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001142/0.01629, allocations: 153.7 kB / 337.6 MB, free: 2.191 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.051e-05/0.01632, allocations: 31.81 kB / 337.7 MB, free: 2.16 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.611e-05/0.01635, allocations: 30.27 kB / 337.7 MB, free: 2.137 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.01635, allocations: 4 kB / 337.7 MB, free: 2.133 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.01635, allocations: 3.938 kB / 337.7 MB, free: 2.129 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.646e-06/0.01636, allocations: 0 / 337.7 MB, free: 2.129 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002028/0.01656, allocations: 280.6 kB / 338 MB, free: 1.812 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.01656, allocations: 0 / 338 MB, free: 1.812 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001037/0.01666, allocations: 39.91 kB / 338 MB, free: 1.773 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001218/0.01679, allocations: 52.81 kB / 338.1 MB, free: 1.719 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.206e-05/0.0168, allocations: 0 / 338.1 MB, free: 1.719 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006972/0.01749, allocations: 1.322 MB / 339.4 MB, free: 280 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.0175, allocations: 0 / 339.4 MB, free: 280 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000417/0.01791, allocations: 345.5 kB / 339.7 MB, free: 15.91 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.257e-05/0.01798, allocations: 47.97 kB / 339.8 MB, free: 15.87 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.219e-05/0.018, allocations: 11.98 kB / 339.8 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.316e-05/0.01807, allocations: 15.98 kB / 339.8 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.303e-05/0.01813, allocations: 31.89 kB / 339.8 MB, free: 15.81 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.105e-05/0.01814, allocations: 7.984 kB / 339.8 MB, free: 15.8 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001113/0.01826, allocations: 189.1 kB / 340 MB, free: 15.61 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01826, allocations: 4 kB / 340 MB, free: 15.61 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002515/0.01851, allocations: 87.84 kB / 340.1 MB, free: 15.52 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 5 ($whenCondition1,switch1.off,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005983/0.01911, allocations: 0.8797 MB / 341 MB, free: 14.61 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003884/0.01949, allocations: 310.2 kB / 341.3 MB, free: 14.3 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.0195, allocations: 0 / 341.3 MB, free: 14.3 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001722/0.01967, allocations: 202.6 kB / 341.5 MB, free: 14.09 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001967/0.01986, allocations: 28.48 kB / 341.5 MB, free: 14.06 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002723/0.02259, allocations: 2.879 MB / 344.4 MB, free: 11.02 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.887e-05/0.02269, allocations: 160.8 kB / 344.6 MB, free: 10.85 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 7.763e-05/0.02276, allocations: 30.28 kB / 344.6 MB, free: 10.82 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.171e-05/0.02286, allocations: 96.47 kB / 344.7 MB, free: 10.72 MB / 314.7 MB Notification: Performance of SimCode: time 7.81e-07/0.02286, allocations: 0 / 344.7 MB, free: 10.72 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02157/0.04443, allocations: 6.84 MB / 351.5 MB, free: 4.035 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.641/7.685, allocations: 11.19 kB / 351.5 MB, free: 4.027 MB / 314.7 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.csv --start-time 0 --stop-time 6 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00025 Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.482271876186132] Failed to read output from testmodel.py, exit status != 0: ['time', 'inductor1.i', 'inductor2.i'] 7.7795517686754465 7.794206448 7.783621188 Calling exit ...