Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001508/0.001508, allocations: 108.8 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001563/0.001563, allocations: 196.8 kB / 24.5 MB, free: 4.008 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.377/1.377, allocations: 225.7 MB / 253.3 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001707/0.001707, allocations: 47.92 kB / 371.2 MB, free: 9.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2675/0.2692, allocations: 52.18 MB / 423.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004221/0.2734, allocations: 2.896 MB / 426.3 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001289/0.2747, allocations: 0.7478 MB / 427.1 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001208/0.2748, allocations: 4 kB / 427.1 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001586/0.275, allocations: 51.5 kB / 427.1 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001726/0.2751, allocations: 87.19 kB / 427.2 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003271/0.2755, allocations: 103.8 kB / 427.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004202/0.2759, allocations: 374.4 kB / 427.7 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000186/0.2761, allocations: 84.81 kB / 427.8 MB, free: 10.26 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001674/0.2762, allocations: 147.5 kB / 427.9 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002218/0.2765, allocations: 151.3 kB / 428 MB, free: 9.965 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.88e-05/0.2765, allocations: 32 kB / 428.1 MB, free: 9.934 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.952e-05/0.2766, allocations: 28 kB / 428.1 MB, free: 9.906 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.173e-05/0.2766, allocations: 67.81 kB / 428.2 MB, free: 9.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000174/0.2768, allocations: 171.2 kB / 428.3 MB, free: 9.672 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000414/0.2772, allocations: 370.1 kB / 428.7 MB, free: 9.312 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.2772, allocations: 0 / 428.7 MB, free: 9.312 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2772, allocations: 0 / 428.7 MB, free: 9.312 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.606e-06/0.2773, allocations: 0 / 428.7 MB, free: 9.312 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.001059/0.2783, allocations: 0.5417 MB / 429.2 MB, free: 8.742 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.2784, allocations: 8.031 kB / 429.2 MB, free: 8.734 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.55e-05/0.2784, allocations: 8.844 kB / 429.3 MB, free: 8.723 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.438e-05/0.2785, allocations: 70.73 kB / 429.3 MB, free: 8.645 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.43e-05/0.2785, allocations: 32.75 kB / 429.4 MB, free: 8.613 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000413/0.2789, allocations: 210.7 kB / 429.6 MB, free: 8.383 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001288/0.2791, allocations: 124 kB / 429.7 MB, free: 8.238 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.552e-05/0.2791, allocations: 32.12 kB / 429.7 MB, free: 8.207 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005006/0.2796, allocations: 297.9 kB / 430 MB, free: 7.906 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.2796, allocations: 7.938 kB / 430 MB, free: 7.898 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.104e-05/0.2797, allocations: 12 kB / 430 MB, free: 7.887 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.2797, allocations: 4 kB / 430 MB, free: 7.883 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003426/0.28, allocations: 190.5 kB / 430.2 MB, free: 7.695 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001767/0.2818, allocations: 1.081 MB / 431.3 MB, free: 6.539 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000313/0.2821, allocations: 150.5 kB / 431.4 MB, free: 6.383 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001349/0.2822, allocations: 76.83 kB / 431.5 MB, free: 6.305 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.833e-05/0.2823, allocations: 4 kB / 431.5 MB, free: 6.301 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002841/0.2825, allocations: 159.8 kB / 431.7 MB, free: 6.125 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.342e-06/0.2825, allocations: 0 / 431.7 MB, free: 6.125 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001025/0.2836, allocations: 304.1 kB / 432 MB, free: 5.82 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/0.2837, allocations: 106.8 kB / 432.1 MB, free: 5.691 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002613/0.2839, allocations: 236.8 kB / 432.3 MB, free: 5.445 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.516e-05/0.284, allocations: 33.7 kB / 432.3 MB, free: 5.406 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001798/0.2842, allocations: 180.5 kB / 432.5 MB, free: 5.223 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.169e-05/0.2842, allocations: 79.41 kB / 432.6 MB, free: 5.145 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000116/0.2843, allocations: 53.7 kB / 432.6 MB, free: 5.086 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001861/0.2845, allocations: 334.8 kB / 433 MB, free: 4.75 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001376/0.2847, allocations: 71.91 kB / 433 MB, free: 4.68 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002089/0.2849, allocations: 145.4 kB / 433.2 MB, free: 4.504 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00032/0.2852, allocations: 198 kB / 433.4 MB, free: 4.289 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.2852, allocations: 0 / 433.4 MB, free: 4.289 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004731/0.2857, allocations: 264.6 kB / 433.6 MB, free: 4.023 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.406e-05/0.2857, allocations: 8 kB / 433.6 MB, free: 4.016 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.275e-06/0.2857, allocations: 224 / 433.6 MB, free: 4.016 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003029/0.286, allocations: 68.73 kB / 433.7 MB, free: 3.945 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002134/0.2862, allocations: 51.92 kB / 433.8 MB, free: 3.895 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001602/0.2878, allocations: 1.46 MB / 435.2 MB, free: 2.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002494/0.2881, allocations: 44.02 kB / 435.3 MB, free: 2.277 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.288e-05/0.2881, allocations: 11.98 kB / 435.3 MB, free: 2.266 MB / 334.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.0001767/0.2883, allocations: 149.7 kB / 435.4 MB, free: 2.109 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.083e-05/0.2883, allocations: 23.86 kB / 435.5 MB, free: 2.086 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.144e-05/0.2884, allocations: 26.27 kB / 435.5 MB, free: 2.062 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.2884, allocations: 0 / 435.5 MB, free: 2.062 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.2884, allocations: 8 kB / 435.5 MB, free: 2.055 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.2884, allocations: 0 / 435.5 MB, free: 2.055 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003718/0.2888, allocations: 288.4 kB / 435.8 MB, free: 1.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.2888, allocations: 0 / 435.8 MB, free: 1.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001629/0.2889, allocations: 31.98 kB / 435.8 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001867/0.2891, allocations: 56.75 kB / 435.9 MB, free: 1.641 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.57e-05/0.2891, allocations: 11.98 kB / 435.9 MB, free: 1.629 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00126/0.2904, allocations: 1.314 MB / 437.2 MB, free: 200 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.2904, allocations: 4 kB / 437.2 MB, free: 196 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006695/0.2911, allocations: 332.2 kB / 437.5 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.666e-05/0.2912, allocations: 47.94 kB / 437.6 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.617e-05/0.2912, allocations: 7.938 kB / 437.6 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00016/0.2914, allocations: 11.98 kB / 437.6 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.576e-05/0.2914, allocations: 35.94 kB / 437.6 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.334e-05/0.2915, allocations: 4 kB / 437.6 MB, free: 15.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001642/0.2916, allocations: 164.5 kB / 437.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 5e-08/0.2916, allocations: 0 / 437.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003618/0.292, allocations: 83.84 kB / 437.9 MB, free: 15.5 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.001045/0.293, allocations: 0.866 MB / 438.7 MB, free: 14.61 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005945/0.2936, allocations: 282.6 kB / 439 MB, free: 14.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2936, allocations: 0 / 439 MB, free: 14.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002971/0.2939, allocations: 194.5 kB / 439.2 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002943/0.2942, allocations: 31.17 kB / 439.2 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003872/0.2981, allocations: 2.615 MB / 441.8 MB, free: 11.35 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003986/0.2985, allocations: 0.7597 MB / 442.6 MB, free: 10.56 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001178/0.2986, allocations: 22.3 kB / 442.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001236/0.2987, allocations: 83.41 kB / 442.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of SimCode: time 6.91e-07/0.2987, allocations: 0 / 442.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03263/0.3314, allocations: 5.884 MB / 448.6 MB, free: 4.738 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.15/12.49, allocations: 11.38 kB / 448.6 MB, free: 4.73 MB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --stepSize=0.00025 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.879480903968215] Failed to read output from testmodel.py, exit status != 0: ['time', 'inductor1.i', 'inductor2.i'] 12.654206257022452 12.669515082 12.388989777 Calling exit ...