Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001766/0.001766, 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.002129/0.002129, allocations: 213.6 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.452/1.452, allocations: 230.6 MB / 258.3 MB, free: 8.047 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.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",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.001912/0.001912, allocations: 64.75 kB / 378.6 MB, free: 3.168 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2484/0.2503, allocations: 53.38 MB / 431.9 MB, free: 6.914 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004522/0.2548, allocations: 3.186 MB / 435.1 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001469/0.2563, allocations: 0.8256 MB / 436 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001509/0.2564, allocations: 11.94 kB / 436 MB, free: 2.871 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001752/0.2566, allocations: 59.42 kB / 436 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001896/0.2568, allocations: 103 kB / 436.1 MB, free: 2.711 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004339/0.2572, allocations: 131.7 kB / 436.2 MB, free: 2.582 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004826/0.2577, allocations: 410.2 kB / 436.7 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000218/0.2579, allocations: 100.3 kB / 436.7 MB, free: 2.078 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002725/0.2582, allocations: 183.3 kB / 436.9 MB, free: 1.898 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002403/0.2584, allocations: 167.2 kB / 437.1 MB, free: 1.734 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.414e-05/0.2585, allocations: 36 kB / 437.1 MB, free: 1.699 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.074e-05/0.2586, allocations: 36 kB / 437.2 MB, free: 1.664 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.814e-05/0.2587, allocations: 87.67 kB / 437.2 MB, free: 1.578 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001785/0.2588, allocations: 183.1 kB / 437.4 MB, free: 1.398 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005271/0.2594, allocations: 431 kB / 437.8 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.2594, allocations: 4 kB / 437.9 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2594, allocations: 0 / 437.9 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.283e-06/0.2594, allocations: 3.938 kB / 437.9 MB, free: 0.9727 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001125/0.2605, allocations: 0.5831 MB / 438.4 MB, free: 364 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.2605, allocations: 12.03 kB / 438.4 MB, free: 352 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.026e-05/0.2606, allocations: 74.66 kB / 438.5 MB, free: 268 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001873/0.2608, allocations: 52.66 kB / 438.6 MB, free: 216 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004246/0.2612, allocations: 231.5 kB / 438.8 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001144/0.2614, allocations: 124 kB / 438.9 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.379e-05/0.2614, allocations: 36.38 kB / 439 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005768/0.262, allocations: 338.7 kB / 439.3 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.262, allocations: 4 kB / 439.3 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.486e-05/0.262, allocations: 16 kB / 439.3 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.174e-05/0.262, allocations: 8 kB / 439.3 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004346/0.2625, allocations: 218.5 kB / 439.5 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001927/0.2644, allocations: 1.31 MB / 440.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003472/0.2648, allocations: 170.4 kB / 441 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001646/0.2649, allocations: 80.83 kB / 441.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.565e-05/0.2649, allocations: 0 / 441.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002935/0.2652, allocations: 160 kB / 441.2 MB, free: 13.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.283e-06/0.2652, allocations: 0 / 441.2 MB, free: 13.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001062/0.2663, allocations: 334.4 kB / 441.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.046e-05/0.2664, allocations: 114.8 kB / 441.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002798/0.2667, allocations: 261.8 kB / 441.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.952e-05/0.2667, allocations: 29.7 kB / 442 MB, free: 12.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001708/0.2669, allocations: 212.3 kB / 442.2 MB, free: 12.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.978e-05/0.2669, allocations: 75.36 kB / 442.2 MB, free: 12.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001013/0.267, allocations: 62.03 kB / 442.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.2672, allocations: 334.8 kB / 442.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001659/0.2674, allocations: 80.61 kB / 442.7 MB, free: 11.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002399/0.2676, allocations: 177.5 kB / 442.9 MB, free: 11.6 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000354/0.268, allocations: 235.5 kB / 443.1 MB, free: 11.33 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.268, allocations: 4 kB / 443.1 MB, free: 11.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006898/0.2687, allocations: 344.4 kB / 443.5 MB, free: 10.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.2687, allocations: 8 kB / 443.5 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.2687, allocations: 0 / 443.5 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002595/0.2689, allocations: 60.97 kB / 443.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002503/0.2692, allocations: 63.91 kB / 443.6 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001419/0.2706, allocations: 1.468 MB / 445.1 MB, free: 9.273 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002559/0.2709, allocations: 47.72 kB / 445.1 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.601e-05/0.2709, allocations: 20.08 kB / 445.1 MB, free: 9.207 MB / 350.1 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.000163/0.2711, allocations: 145.8 kB / 445.3 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.37e-05/0.2711, allocations: 31.8 kB / 445.3 MB, free: 9.023 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.387e-05/0.2711, allocations: 30.27 kB / 445.3 MB, free: 8.992 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.2712, allocations: 4 kB / 445.3 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.304e-06/0.2712, allocations: 0 / 445.3 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.2712, allocations: 0 / 445.3 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003402/0.2715, allocations: 312.4 kB / 445.6 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.2715, allocations: 4 kB / 445.6 MB, free: 8.637 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001877/0.2717, allocations: 35.92 kB / 445.7 MB, free: 8.602 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001829/0.2719, allocations: 56.75 kB / 445.7 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.64e-05/0.2719, allocations: 3.984 kB / 445.7 MB, free: 8.539 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001194/0.2731, allocations: 1.318 MB / 447 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2731, allocations: 4.062 kB / 447 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007204/0.2738, allocations: 356.4 kB / 447.4 MB, free: 6.734 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.771e-05/0.2739, allocations: 39.8 kB / 447.4 MB, free: 6.695 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.727e-05/0.2739, allocations: 11.94 kB / 447.4 MB, free: 6.684 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001696/0.2741, allocations: 16.05 kB / 447.5 MB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.825e-05/0.2742, allocations: 39.88 kB / 447.5 MB, free: 6.629 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.369e-05/0.2742, allocations: 4 kB / 447.5 MB, free: 6.625 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001848/0.2744, allocations: 185.2 kB / 447.7 MB, free: 6.441 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2744, allocations: 0 / 447.7 MB, free: 6.441 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003864/0.2748, allocations: 91.84 kB / 447.8 MB, free: 6.352 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: 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.001032/0.2758, allocations: 0.8894 MB / 448.7 MB, free: 5.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006607/0.2765, allocations: 302.7 kB / 449 MB, free: 5.121 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2765, allocations: 0 / 449 MB, free: 5.121 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003193/0.2768, allocations: 198.6 kB / 449.2 MB, free: 4.914 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002532/0.277, allocations: 44.34 kB / 449.2 MB, free: 4.871 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004619/0.2817, allocations: 2.914 MB / 452.1 MB, free: 1.812 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004405/0.2821, allocations: 0.7675 MB / 452.9 MB, free: 1.016 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001367/0.2822, allocations: 30.27 kB / 452.9 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001642/0.2824, allocations: 103.4 kB / 453 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of SimCode: time 8.62e-07/0.2824, allocations: 0 / 453 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03871/0.3211, allocations: 6.266 MB / 459.3 MB, free: 10.77 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.87/12.19, allocations: 14.8 kB / 459.3 MB, free: 10.75 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --stepSize=0.00025 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.5745740220882] Failed to read output from testmodel.py, exit status != 0: ['time', 'inductor1.i', 'inductor2.i'] 12.286346584092826 12.30171657 12.039178899 Calling exit ...