Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001529/0.001529, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001378/0.001378, allocations: 212.2 kB / 24.53 MB, free: 4.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.384/1.384, allocations: 230.6 MB / 258.3 MB, free: 7.992 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+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_4_1_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001462/0.001462, allocations: 55.91 kB / 378.6 MB, free: 3.094 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2397/0.2412, allocations: 53.36 MB / 431.9 MB, free: 6.816 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004407/0.2456, allocations: 3.192 MB / 435.1 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001396/0.247, allocations: 0.8295 MB / 436 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001366/0.2471, allocations: 4 kB / 436 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001671/0.2473, allocations: 63.36 kB / 436 MB, free: 2.711 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001841/0.2475, allocations: 103 kB / 436.1 MB, free: 2.609 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003526/0.2478, allocations: 127.7 kB / 436.2 MB, free: 2.484 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004384/0.2482, allocations: 418.2 kB / 436.7 MB, free: 2.074 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002129/0.2485, allocations: 96.33 kB / 436.8 MB, free: 1.977 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002573/0.2487, allocations: 171.4 kB / 436.9 MB, free: 1.809 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002306/0.2489, allocations: 171.2 kB / 437.1 MB, free: 1.641 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.808e-05/0.249, allocations: 36 kB / 437.1 MB, free: 1.605 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.564e-05/0.2491, allocations: 44 kB / 437.2 MB, free: 1.562 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.87e-05/0.2492, allocations: 83.67 kB / 437.2 MB, free: 1.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001781/0.2493, allocations: 187.1 kB / 437.4 MB, free: 1.297 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000468/0.2498, allocations: 431.1 kB / 437.9 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.2498, allocations: 0 / 437.9 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2498, allocations: 0 / 437.9 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.573e-06/0.2498, allocations: 3.938 kB / 437.9 MB, free: 0.875 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.001005/0.2508, allocations: 0.5909 MB / 438.4 MB, free: 256 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.299e-05/0.2509, allocations: 8.031 kB / 438.5 MB, free: 248 kB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.018e-05/0.2509, allocations: 8.844 kB / 438.5 MB, free: 240 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.94e-05/0.2509, allocations: 70.72 kB / 438.5 MB, free: 160 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001764/0.2511, allocations: 52.64 kB / 438.6 MB, free: 108 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003807/0.2515, allocations: 223.5 kB / 438.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001097/0.2516, allocations: 136 kB / 438.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.307e-05/0.2517, allocations: 40.06 kB / 439 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005494/0.2522, allocations: 334.8 kB / 439.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.2522, allocations: 0 / 439.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.128e-05/0.2523, allocations: 12 kB / 439.3 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.838e-06/0.2523, allocations: 8 kB / 439.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004153/0.2527, allocations: 222.5 kB / 439.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001878/0.2546, allocations: 1.322 MB / 440.9 MB, free: 13.67 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003392/0.2549, allocations: 158.5 kB / 441 MB, free: 13.51 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001683/0.2551, allocations: 92.69 kB / 441.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.013e-05/0.2551, allocations: 4 kB / 441.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002991/0.2554, allocations: 149.9 kB / 441.3 MB, free: 13.24 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.213e-06/0.2554, allocations: 0 / 441.3 MB, free: 13.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001121/0.2565, allocations: 336.1 kB / 441.6 MB, free: 12.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.996e-05/0.2566, allocations: 106.8 kB / 441.7 MB, free: 12.78 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000289/0.2569, allocations: 265.8 kB / 441.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.058e-05/0.2569, allocations: 33.7 kB / 442 MB, free: 12.47 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001628/0.2571, allocations: 208.3 kB / 442.2 MB, free: 12.26 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.886e-05/0.2572, allocations: 79.36 kB / 442.3 MB, free: 12.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000109/0.2573, allocations: 58.03 kB / 442.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000196/0.2575, allocations: 342.8 kB / 442.7 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000169/0.2576, allocations: 72.62 kB / 442.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002586/0.2579, allocations: 177.5 kB / 442.9 MB, free: 11.49 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003871/0.2583, allocations: 247.5 kB / 443.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.2583, allocations: 0 / 443.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006798/0.259, allocations: 340.5 kB / 443.5 MB, free: 10.87 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/0.259, allocations: 8 kB / 443.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.259, allocations: 4 kB / 443.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002491/0.2592, allocations: 52.81 kB / 443.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002518/0.2595, allocations: 67.84 kB / 443.6 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001415/0.2609, allocations: 1.464 MB / 445.1 MB, free: 9.164 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002669/0.2612, allocations: 51.75 kB / 445.1 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.287e-05/0.2612, allocations: 12 kB / 445.1 MB, free: 9.102 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.0001698/0.2614, allocations: 145.8 kB / 445.3 MB, free: 8.949 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.544e-05/0.2614, allocations: 31.86 kB / 445.3 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.366e-05/0.2615, allocations: 34.27 kB / 445.3 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.2615, allocations: 0 / 445.3 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.334e-06/0.2615, allocations: 0 / 445.3 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.2615, allocations: 3.984 kB / 445.3 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003543/0.2618, allocations: 308.4 kB / 445.6 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.2618, allocations: 0 / 445.6 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001923/0.262, allocations: 51.84 kB / 445.7 MB, free: 8.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001807/0.2622, allocations: 48.81 kB / 445.7 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.654e-05/0.2622, allocations: 8 kB / 445.7 MB, free: 8.422 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001231/0.2635, allocations: 1.322 MB / 447.1 MB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.2635, allocations: 0 / 447.1 MB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007134/0.2642, allocations: 349.6 kB / 447.4 MB, free: 6.629 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.422e-05/0.2643, allocations: 43.78 kB / 447.4 MB, free: 6.586 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.096e-05/0.2643, allocations: 8 kB / 447.5 MB, free: 6.578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001712/0.2645, allocations: 23.92 kB / 447.5 MB, free: 6.555 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.908e-05/0.2646, allocations: 27.94 kB / 447.5 MB, free: 6.527 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.391e-05/0.2646, allocations: 12 kB / 447.5 MB, free: 6.516 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001831/0.2648, allocations: 189.2 kB / 447.7 MB, free: 6.328 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2648, allocations: 3.938 kB / 447.7 MB, free: 6.324 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003868/0.2652, allocations: 87.84 kB / 447.8 MB, free: 6.238 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.001068/0.2662, allocations: 0.8863 MB / 448.7 MB, free: 5.316 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006233/0.2669, allocations: 305.2 kB / 449 MB, free: 5.008 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2669, allocations: 0.75 kB / 449 MB, free: 5.008 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003105/0.2672, allocations: 198.6 kB / 449.2 MB, free: 4.801 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000251/0.2674, allocations: 31.53 kB / 449.2 MB, free: 4.773 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004276/0.2717, allocations: 2.921 MB / 452.1 MB, free: 1.707 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004276/0.2721, allocations: 0.7714 MB / 452.9 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001063/0.2722, allocations: 30.27 kB / 452.9 MB, free: 0.875 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000134/0.2724, allocations: 99.41 kB / 453 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2724, allocations: 0 / 453 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03041/0.3028, allocations: 6.337 MB / 459.4 MB, free: 10.61 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.15/12.45, allocations: 14.55 kB / 459.4 MB, free: 10.6 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --stepSize=0.00025 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.843305496033281] Failed to read output from testmodel.py, exit status != 0: ['time', 'inductor1.i', 'inductor2.i'] 12.617683471995406 12.632676508 12.379843076 Calling exit ...