Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.006607/0.006607, allocations: 110.7 kB / 21.97 MB, free: 5.25 MB / 14.72 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.001585/0.001585, allocations: 206.5 kB / 25.27 MB, free: 3.238 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.33/1.33, allocations: 207.6 MB / 236 MB, free: 9.988 MB / 190.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001702/0.001702, allocations: 51.94 kB / 348 MB, free: 10.11 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2334/0.2351, allocations: 49.16 MB / 397.1 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003424/0.2386, allocations: 3.118 MB / 400.3 MB, free: 6.773 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001025/0.2396, allocations: 0.7967 MB / 401.1 MB, free: 6.195 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001308/0.2397, allocations: 10.81 kB / 401.1 MB, free: 6.191 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001584/0.2399, allocations: 59.33 kB / 401.1 MB, free: 6.156 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001559/0.24, allocations: 97.31 kB / 401.2 MB, free: 6.086 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002913/0.2403, allocations: 114.5 kB / 401.3 MB, free: 6.02 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00035/0.2407, allocations: 425.2 kB / 401.8 MB, free: 5.805 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001782/0.2408, allocations: 103 kB / 401.9 MB, free: 5.738 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001806/0.241, allocations: 175.5 kB / 402 MB, free: 5.652 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001981/0.2412, allocations: 166.9 kB / 402.2 MB, free: 5.57 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.902e-05/0.2413, allocations: 34.81 kB / 402.2 MB, free: 5.57 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.712e-05/0.2413, allocations: 38.69 kB / 402.3 MB, free: 5.566 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.242e-05/0.2414, allocations: 83.95 kB / 402.3 MB, free: 5.508 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001434/0.2415, allocations: 187.1 kB / 402.5 MB, free: 5.398 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004173/0.242, allocations: 425.3 kB / 402.9 MB, free: 5.234 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.242, allocations: 0 / 402.9 MB, free: 5.234 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.242, allocations: 0 / 402.9 MB, free: 5.234 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.025e-06/0.242, allocations: 1.25 kB / 402.9 MB, free: 5.234 MB / 318.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.0008877/0.2429, allocations: 0.5807 MB / 403.5 MB, free: 4.801 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.2429, allocations: 14.3 kB / 403.5 MB, free: 4.797 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.945e-05/0.2429, allocations: 8.656 kB / 403.5 MB, free: 4.797 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.604e-05/0.243, allocations: 73.17 kB / 403.6 MB, free: 4.734 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.198e-05/0.243, allocations: 44.94 kB / 403.7 MB, free: 4.711 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003197/0.2434, allocations: 223 kB / 403.9 MB, free: 4.516 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.115e-05/0.2434, allocations: 136.3 kB / 404 MB, free: 4.371 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.045e-05/0.2435, allocations: 42.34 kB / 404 MB, free: 4.352 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005026/0.244, allocations: 342.9 kB / 404.4 MB, free: 4.18 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.316e-05/0.244, allocations: 0 / 404.4 MB, free: 4.18 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.896e-05/0.244, allocations: 11.16 kB / 404.4 MB, free: 4.172 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.244, allocations: 12.2 kB / 404.4 MB, free: 4.168 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003764/0.2444, allocations: 221.1 kB / 404.6 MB, free: 4.09 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001517/0.2459, allocations: 1.309 MB / 405.9 MB, free: 3.113 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002973/0.2462, allocations: 159.6 kB / 406.1 MB, free: 3.035 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001464/0.2464, allocations: 82.27 kB / 406.2 MB, free: 3 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.746e-05/0.2464, allocations: 5.203 kB / 406.2 MB, free: 2.996 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002471/0.2466, allocations: 164.5 kB / 406.3 MB, free: 2.883 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.352e-06/0.2466, allocations: 0 / 406.3 MB, free: 2.883 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001103/0.2477, allocations: 327.2 kB / 406.7 MB, free: 2.754 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.133e-05/0.2478, allocations: 106.8 kB / 406.8 MB, free: 2.629 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002348/0.248, allocations: 264.5 kB / 407 MB, free: 2.469 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.102e-05/0.248, allocations: 28.48 kB / 407 MB, free: 2.438 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.089e-05/0.2481, allocations: 213.8 kB / 407.3 MB, free: 2.258 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.614e-05/0.2482, allocations: 68.61 kB / 407.3 MB, free: 2.207 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.166e-05/0.2483, allocations: 65.25 kB / 407.4 MB, free: 2.164 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.736e-05/0.2483, allocations: 341.2 kB / 407.7 MB, free: 1.836 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001529/0.2485, allocations: 74.73 kB / 407.8 MB, free: 1.812 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001834/0.2487, allocations: 181.3 kB / 408 MB, free: 1.66 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002841/0.2489, allocations: 235 kB / 408.2 MB, free: 1.488 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.2489, allocations: 0 / 408.2 MB, free: 1.488 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006192/0.2496, allocations: 344.5 kB / 408.5 MB, free: 1.332 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.2496, allocations: 7.672 kB / 408.5 MB, free: 1.332 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.2496, allocations: 2.75 kB / 408.5 MB, free: 1.332 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002471/0.2498, allocations: 60.09 kB / 408.6 MB, free: 1.309 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00024/0.2501, allocations: 59.94 kB / 408.7 MB, free: 1.305 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001028/0.2511, allocations: 1.465 MB / 410.1 MB, free: 15.87 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002851/0.2514, allocations: 45.88 kB / 410.2 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.5e-05/0.2514, allocations: 14.94 kB / 410.2 MB, free: 15.84 MB / 334.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.0001796/0.2516, allocations: 158.8 kB / 410.3 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.365e-05/0.2516, allocations: 33.5 kB / 410.4 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.632e-05/0.2517, allocations: 31.25 kB / 410.4 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.2517, allocations: 2.75 kB / 410.4 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.2517, allocations: 0 / 410.4 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.2517, allocations: 2.969 kB / 410.4 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003836/0.2521, allocations: 314.3 kB / 410.7 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.2521, allocations: 3.938 kB / 410.7 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001883/0.2523, allocations: 38.06 kB / 410.8 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001922/0.2525, allocations: 52.08 kB / 410.8 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.727e-05/0.2525, allocations: 6.312 kB / 410.8 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001246/0.2537, allocations: 1.319 MB / 412.1 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.2537, allocations: 0.7031 kB / 412.1 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007676/0.2545, allocations: 353.2 kB / 412.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.996e-05/0.2546, allocations: 39.06 kB / 412.5 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.135e-05/0.2546, allocations: 10.2 kB / 412.5 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001783/0.2548, allocations: 19.39 kB / 412.5 MB, free: 13.87 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.851e-05/0.2549, allocations: 31.78 kB / 412.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.505e-05/0.2549, allocations: 5.281 kB / 412.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001896/0.2551, allocations: 186.1 kB / 412.8 MB, free: 13.75 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2551, allocations: 0 / 412.8 MB, free: 13.75 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004026/0.2555, allocations: 92.84 kB / 412.9 MB, free: 13.73 MB / 334.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.001063/0.2566, allocations: 0.8816 MB / 413.7 MB, free: 13.02 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006655/0.2573, allocations: 309.9 kB / 414 MB, free: 12.84 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2573, allocations: 0 / 414 MB, free: 12.84 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003232/0.2576, allocations: 194 kB / 414.2 MB, free: 12.7 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002982/0.2579, allocations: 41.09 kB / 414.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004578/0.2625, allocations: 2.907 MB / 417.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004028/0.2629, allocations: 0.7753 MB / 418 MB, free: 9.965 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001199/0.263, allocations: 27.47 kB / 418 MB, free: 9.949 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001353/0.2631, allocations: 100.5 kB / 418.1 MB, free: 9.863 MB / 334.1 MB Notification: Performance of SimCode: time 6.51e-07/0.2631, allocations: 0 / 418.1 MB, free: 9.863 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03457/0.2977, allocations: 6.308 MB / 424.4 MB, free: 6.523 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.22/12.51, allocations: 10.25 kB / 424.4 MB, free: 6.516 MB / 334.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --stepSize=0.00025 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.857168881047983] Failed to read output from testmodel.py, exit status != 0: ['time', 'inductor1.i', 'inductor2.i'] 12.681441727967467 12.695874678 12.450996622 Calling exit ...