Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.00165/0.00165, allocations: 109 kB / 21.23 MB, free: 0.6641 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.002055/0.002055, allocations: 213.9 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.442/1.442, allocations: 230.6 MB / 258.3 MB, free: 8.027 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-beta.om/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.SwitchWithArc,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001899/0.001899, allocations: 72.77 kB / 378.6 MB, free: 3.137 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2505/0.2524, allocations: 53.36 MB / 431.9 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004288/0.2567, allocations: 2.926 MB / 434.8 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001389/0.2581, allocations: 0.7673 MB / 435.6 MB, free: 3.172 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001462/0.2582, allocations: 7.938 kB / 435.6 MB, free: 3.164 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001539/0.2584, allocations: 47.5 kB / 435.7 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000183/0.2585, allocations: 91.2 kB / 435.8 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003221/0.2589, allocations: 111.7 kB / 435.9 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004249/0.2593, allocations: 362.5 kB / 436.2 MB, free: 2.562 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001901/0.2595, allocations: 91.62 kB / 436.3 MB, free: 2.469 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001632/0.2596, allocations: 139.5 kB / 436.4 MB, free: 2.332 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002191/0.2599, allocations: 155.3 kB / 436.6 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.939e-05/0.2599, allocations: 32 kB / 436.6 MB, free: 2.148 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.779e-05/0.26, allocations: 36 kB / 436.7 MB, free: 2.113 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.007e-05/0.26, allocations: 67.77 kB / 436.7 MB, free: 2.047 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001679/0.2602, allocations: 167.2 kB / 436.9 MB, free: 1.883 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004153/0.2606, allocations: 366.5 kB / 437.3 MB, free: 1.523 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.2606, allocations: 0 / 437.3 MB, free: 1.523 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.2606, allocations: 0 / 437.3 MB, free: 1.523 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.2606, allocations: 0 / 437.3 MB, free: 1.523 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001054/0.2617, allocations: 0.5339 MB / 437.8 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/0.2617, allocations: 15.97 kB / 437.8 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.831e-05/0.2618, allocations: 62.72 kB / 437.9 MB, free: 0.875 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.206e-05/0.2619, allocations: 40.7 kB / 437.9 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003956/0.2623, allocations: 202.7 kB / 438.1 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001254/0.2624, allocations: 140 kB / 438.2 MB, free: 460 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.977e-05/0.2625, allocations: 28.38 kB / 438.3 MB, free: 432 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004913/0.2629, allocations: 293.9 kB / 438.6 MB, free: 128 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.263, allocations: 0 / 438.6 MB, free: 128 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.938e-05/0.263, allocations: 16 kB / 438.6 MB, free: 112 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.127e-05/0.263, allocations: 11.98 kB / 438.6 MB, free: 100 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003688/0.2634, allocations: 194.5 kB / 438.8 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001694/0.2651, allocations: 1.085 MB / 439.9 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003169/0.2654, allocations: 146.5 kB / 440 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001353/0.2655, allocations: 72.88 kB / 440.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.841e-05/0.2655, allocations: 0 / 440.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000348/0.2659, allocations: 167.3 kB / 440.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.182e-06/0.2659, allocations: 0 / 440.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0009952/0.2669, allocations: 312.5 kB / 440.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.143e-05/0.267, allocations: 106.8 kB / 440.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002449/0.2672, allocations: 224.9 kB / 440.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.987e-05/0.2672, allocations: 29.7 kB / 440.9 MB, free: 13.63 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001415/0.2674, allocations: 188.5 kB / 441.1 MB, free: 13.44 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.321e-05/0.2674, allocations: 67.42 kB / 441.1 MB, free: 13.37 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.376e-05/0.2675, allocations: 57.69 kB / 441.2 MB, free: 13.31 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.2677, allocations: 342.8 kB / 441.5 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001285/0.2678, allocations: 63.97 kB / 441.6 MB, free: 12.9 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001998/0.268, allocations: 145.5 kB / 441.7 MB, free: 12.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002864/0.2683, allocations: 192.2 kB / 441.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2683, allocations: 0 / 441.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004499/0.2688, allocations: 276.5 kB / 442.2 MB, free: 12.24 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.2688, allocations: 7.984 kB / 442.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.2688, allocations: 4 kB / 442.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002555/0.269, allocations: 57.03 kB / 442.3 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002181/0.2693, allocations: 47.92 kB / 442.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001533/0.2708, allocations: 1.464 MB / 443.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002232/0.271, allocations: 35.83 kB / 443.8 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.211e-05/0.271, allocations: 12 kB / 443.8 MB, free: 10.5 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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.0001893/0.2712, allocations: 149.8 kB / 444 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.147e-05/0.2713, allocations: 35.77 kB / 444 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.182e-05/0.2713, allocations: 26.28 kB / 444 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.2713, allocations: 4 kB / 444 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.2713, allocations: 0 / 444 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.521e-06/0.2713, allocations: 3.984 kB / 444 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003531/0.2717, allocations: 292.4 kB / 444.3 MB, free: 9.945 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.2717, allocations: 3.938 kB / 444.3 MB, free: 9.941 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001605/0.2719, allocations: 31.98 kB / 444.4 MB, free: 9.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000193/0.272, allocations: 56.81 kB / 444.4 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.051e-05/0.2721, allocations: 8 kB / 444.4 MB, free: 9.844 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001279/0.2733, allocations: 1.327 MB / 445.7 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.2733, allocations: 0 / 445.7 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000686/0.274, allocations: 328.6 kB / 446.1 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.349e-05/0.2741, allocations: 43.73 kB / 446.1 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.477e-05/0.2742, allocations: 4 kB / 446.1 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001566/0.2743, allocations: 15.98 kB / 446.1 MB, free: 8 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.411e-05/0.2744, allocations: 32.02 kB / 446.2 MB, free: 7.969 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.69e-05/0.2744, allocations: 11.98 kB / 446.2 MB, free: 7.957 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001583/0.2746, allocations: 160.4 kB / 446.3 MB, free: 7.805 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2746, allocations: 4 kB / 446.3 MB, free: 7.801 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000361/0.2749, allocations: 75.89 kB / 446.4 MB, free: 7.727 MB / 350.1 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: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,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): 17 * 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 {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00106/0.276, allocations: 0.8668 MB / 447.3 MB, free: 6.828 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005756/0.2766, allocations: 281.3 kB / 447.5 MB, free: 6.543 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2766, allocations: 0 / 447.5 MB, free: 6.543 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002899/0.2769, allocations: 186.6 kB / 447.7 MB, free: 6.348 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003025/0.2772, allocations: 48.83 kB / 447.8 MB, free: 6.301 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003836/0.281, allocations: 2.596 MB / 450.4 MB, free: 3.574 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003784/0.2814, allocations: 0.7518 MB / 451.1 MB, free: 2.797 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001079/0.2815, allocations: 26.28 kB / 451.2 MB, free: 2.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001219/0.2816, allocations: 79.41 kB / 451.2 MB, free: 2.691 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2816, allocations: 0 / 451.2 MB, free: 2.691 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03477/0.3164, allocations: 5.849 MB / 457.1 MB, free: 13 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.96/12.27, allocations: 0 / 457.1 MB, free: 13 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --stepSize=0.00025 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.658077100291848] Failed to read output from testmodel.py, exit status != 0: ['time', 'inductor1.i', 'inductor2.i'] 12.368723894003779 12.394810293 12.129268579 Calling exit ...