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.001182/0.001182, allocations: 105 kB / 19.74 MB, free: 2.566 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.001264/0.001264, allocations: 218.6 kB / 22.92 MB, free: 5.539 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.296/1.296, allocations: 230.5 MB / 256.4 MB, free: 8.453 MB / 206.1 MB " [Timeout remaining time 179] 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.002013/0.002013, allocations: 71.83 kB / 376.1 MB, free: 4.094 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2218/0.2239, allocations: 53.33 MB / 429.4 MB, free: 7.438 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004006/0.2279, allocations: 3.182 MB / 432.6 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001252/0.2291, allocations: 0.8178 MB / 433.4 MB, free: 3.418 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001255/0.2292, allocations: 8 kB / 433.4 MB, free: 3.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001682/0.2294, allocations: 59.42 kB / 433.5 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001699/0.2296, allocations: 107 kB / 433.6 MB, free: 3.246 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003566/0.2299, allocations: 131.7 kB / 433.7 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000401/0.2303, allocations: 414.2 kB / 434.1 MB, free: 2.711 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001925/0.2305, allocations: 99.75 kB / 434.2 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002324/0.2308, allocations: 175.3 kB / 434.4 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002205/0.231, allocations: 171.2 kB / 434.6 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.359e-05/0.231, allocations: 36 kB / 434.6 MB, free: 2.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.426e-05/0.2311, allocations: 36 kB / 434.6 MB, free: 2.195 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.332e-05/0.2312, allocations: 87.69 kB / 434.7 MB, free: 2.109 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001688/0.2314, allocations: 187.1 kB / 434.9 MB, free: 1.926 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004352/0.2318, allocations: 434.6 kB / 435.3 MB, free: 1.504 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.2318, allocations: 0 / 435.3 MB, free: 1.504 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.2318, allocations: 0 / 435.3 MB, free: 1.504 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.2318, allocations: 0 / 435.3 MB, free: 1.504 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.0009965/0.2328, allocations: 0.6662 MB / 436 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/0.2328, allocations: 12.03 kB / 436 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.144e-05/0.2329, allocations: 66.72 kB / 436.1 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001656/0.2331, allocations: 52.66 kB / 436.1 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003605/0.2334, allocations: 289.4 kB / 436.4 MB, free: 336 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.471e-05/0.2335, allocations: 80.62 kB / 436.5 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.907e-05/0.2336, allocations: 32.38 kB / 436.5 MB, free: 212 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005235/0.2341, allocations: 338.7 kB / 436.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.2341, allocations: 0 / 436.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.219e-05/0.2341, allocations: 15.98 kB / 436.9 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/0.2341, allocations: 8 kB / 436.9 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003968/0.2345, allocations: 222.5 kB / 437.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001751/0.2363, allocations: 1.356 MB / 438.4 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003195/0.2366, allocations: 170.4 kB / 438.6 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001498/0.2368, allocations: 80.83 kB / 438.7 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.115e-05/0.2368, allocations: 4 kB / 438.7 MB, free: 13.9 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002605/0.237, allocations: 149.9 kB / 438.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.383e-06/0.237, allocations: 3.938 kB / 438.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001058/0.2381, allocations: 405.6 kB / 439.2 MB, free: 13.31 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.838e-05/0.2382, allocations: 106.8 kB / 439.3 MB, free: 13.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000256/0.2384, allocations: 270.6 kB / 439.6 MB, free: 12.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.25e-05/0.2384, allocations: 29.7 kB / 439.6 MB, free: 12.87 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001339/0.2386, allocations: 212.3 kB / 439.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.856e-05/0.2386, allocations: 75.38 kB / 439.9 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.24e-05/0.2387, allocations: 62.02 kB / 440 MB, free: 12.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.2389, allocations: 334.8 kB / 440.3 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001563/0.239, allocations: 80.62 kB / 440.4 MB, free: 12.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002237/0.2392, allocations: 181.5 kB / 440.6 MB, free: 11.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003396/0.2396, allocations: 243.6 kB / 440.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.2396, allocations: 7.875 kB / 440.8 MB, free: 11.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006675/0.2402, allocations: 344.5 kB / 441.1 MB, free: 11.26 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.2403, allocations: 8 kB / 441.2 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.2403, allocations: 0 / 441.2 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002551/0.2405, allocations: 56.81 kB / 441.2 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002358/0.2408, allocations: 60 kB / 441.3 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001355/0.2421, allocations: 1.572 MB / 442.8 MB, free: 9.426 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002399/0.2424, allocations: 47.72 kB / 442.9 MB, free: 9.379 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.184e-05/0.2424, allocations: 12 kB / 442.9 MB, free: 9.367 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.0001475/0.2425, allocations: 149.8 kB / 443 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.143e-05/0.2426, allocations: 35.86 kB / 443.1 MB, free: 9.176 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.105e-05/0.2426, allocations: 30.17 kB / 443.1 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.357e-06/0.2426, allocations: 4 kB / 443.1 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.505e-06/0.2426, allocations: 3.938 kB / 443.1 MB, free: 9.133 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.2426, allocations: 0 / 443.1 MB, free: 9.133 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00033/0.243, allocations: 341.3 kB / 443.4 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.243, allocations: 0 / 443.4 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001825/0.2431, allocations: 31.98 kB / 443.5 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000178/0.2433, allocations: 60.75 kB / 443.5 MB, free: 8.656 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.426e-05/0.2433, allocations: 0 / 443.5 MB, free: 8.656 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00116/0.2445, allocations: 1.423 MB / 445 MB, free: 7.094 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.2445, allocations: 0 / 445 MB, free: 7.094 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00067/0.2452, allocations: 356.2 kB / 445.3 MB, free: 6.727 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001026/0.2453, allocations: 117 kB / 445.4 MB, free: 6.594 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.355e-05/0.2453, allocations: 4 kB / 445.4 MB, free: 6.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000167/0.2455, allocations: 15.98 kB / 445.4 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.558e-05/0.2455, allocations: 39.94 kB / 445.5 MB, free: 6.535 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.267e-05/0.2456, allocations: 8 kB / 445.5 MB, free: 6.527 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001648/0.2457, allocations: 186 kB / 445.7 MB, free: 6.344 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.2457, allocations: 0 / 445.7 MB, free: 6.344 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003571/0.2461, allocations: 95.78 kB / 445.8 MB, free: 6.25 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.0009636/0.247, allocations: 0.8831 MB / 446.6 MB, free: 5.332 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005734/0.2476, allocations: 307.7 kB / 446.9 MB, free: 5.02 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2476, allocations: 4.688 kB / 447 MB, free: 5.016 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002985/0.2479, allocations: 198.6 kB / 447.1 MB, free: 4.809 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002525/0.2482, allocations: 36.42 kB / 447.2 MB, free: 4.773 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003961/0.2521, allocations: 2.907 MB / 450.1 MB, free: 1.723 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003579/0.2525, allocations: 0.7675 MB / 450.9 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.831e-05/0.2526, allocations: 30.27 kB / 450.9 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001302/0.2527, allocations: 99.41 kB / 451 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.2527, allocations: 0 / 451 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03383/0.2865, allocations: 6.1 MB / 457.1 MB, free: 10.85 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.25/10.53, allocations: 12.05 kB / 457.1 MB, free: 10.84 MB / 366.1 MB " [Timeout remaining time 649] (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 --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: 12.706015686999308]