Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.001962/0.001962, 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.00186/0.00186, allocations: 187.8 kB / 24.5 MB, free: 4.02 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.386/1.386, allocations: 225.7 MB / 253.3 MB, free: 13.04 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.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001572/0.001572, allocations: 43.92 kB / 371.2 MB, free: 9.852 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2533/0.2549, allocations: 52.19 MB / 423.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.005771/0.2607, allocations: 3.173 MB / 426.6 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001996/0.2627, allocations: 0.7556 MB / 427.3 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001988/0.2629, allocations: 4 kB / 427.4 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002372/0.2631, allocations: 59.36 kB / 427.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002997/0.2634, allocations: 107 kB / 427.5 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000459/0.2639, allocations: 115.7 kB / 427.6 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006752/0.2645, allocations: 414.2 kB / 428 MB, free: 9.969 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002994/0.2648, allocations: 100.3 kB / 428.1 MB, free: 9.867 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003068/0.2651, allocations: 159.4 kB / 428.3 MB, free: 9.711 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003558/0.2655, allocations: 183.2 kB / 428.5 MB, free: 9.531 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.586e-05/0.2656, allocations: 32 kB / 428.5 MB, free: 9.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.487e-05/0.2656, allocations: 36 kB / 428.5 MB, free: 9.465 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001105/0.2658, allocations: 83.73 kB / 428.6 MB, free: 9.383 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002563/0.266, allocations: 187.1 kB / 428.8 MB, free: 9.199 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006437/0.2667, allocations: 427 kB / 429.2 MB, free: 8.785 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2667, allocations: 0 / 429.2 MB, free: 8.785 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.2667, allocations: 0 / 429.2 MB, free: 8.785 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.644e-06/0.2667, allocations: 0 / 429.2 MB, free: 8.785 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.001414/0.2681, allocations: 0.59 MB / 429.8 MB, free: 8.164 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.628e-05/0.2681, allocations: 12.03 kB / 429.8 MB, free: 8.152 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.841e-05/0.2682, allocations: 12.78 kB / 429.8 MB, free: 8.141 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.8e-05/0.2683, allocations: 66.72 kB / 429.9 MB, free: 8.066 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001121/0.2684, allocations: 44.7 kB / 429.9 MB, free: 8.023 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005205/0.2689, allocations: 227.5 kB / 430.2 MB, free: 7.773 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001433/0.269, allocations: 136 kB / 430.3 MB, free: 7.617 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.508e-05/0.2691, allocations: 32.12 kB / 430.3 MB, free: 7.586 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008387/0.2699, allocations: 330.8 kB / 430.6 MB, free: 7.246 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.458e-05/0.27, allocations: 0 / 430.6 MB, free: 7.246 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.082e-05/0.27, allocations: 20 kB / 430.7 MB, free: 7.227 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.26e-05/0.27, allocations: 8 kB / 430.7 MB, free: 7.219 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006533/0.2707, allocations: 218.5 kB / 430.9 MB, free: 7.008 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002803/0.2735, allocations: 1.31 MB / 432.2 MB, free: 5.605 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005131/0.274, allocations: 162.5 kB / 432.4 MB, free: 5.438 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002612/0.2743, allocations: 80.83 kB / 432.4 MB, free: 5.355 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.102e-05/0.2743, allocations: 7.984 kB / 432.4 MB, free: 5.348 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004525/0.2747, allocations: 163.8 kB / 432.6 MB, free: 5.168 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 2.225e-06/0.2747, allocations: 0 / 432.6 MB, free: 5.168 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001604/0.2763, allocations: 336 kB / 432.9 MB, free: 4.832 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001054/0.2765, allocations: 106.8 kB / 433 MB, free: 4.703 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004142/0.2769, allocations: 253.9 kB / 433.3 MB, free: 4.445 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.148e-05/0.2769, allocations: 29.7 kB / 433.3 MB, free: 4.41 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000207/0.2771, allocations: 212.2 kB / 433.5 MB, free: 4.195 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.97e-05/0.2772, allocations: 75.38 kB / 433.6 MB, free: 4.121 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001622/0.2774, allocations: 62.03 kB / 433.7 MB, free: 4.055 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001842/0.2776, allocations: 330.8 kB / 434 MB, free: 3.723 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000253/0.2778, allocations: 84.61 kB / 434.1 MB, free: 3.641 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003631/0.2782, allocations: 177.4 kB / 434.2 MB, free: 3.422 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005629/0.2787, allocations: 240.8 kB / 434.5 MB, free: 3.152 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.103e-06/0.2787, allocations: 4 kB / 434.5 MB, free: 3.148 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001098/0.2798, allocations: 348.4 kB / 434.8 MB, free: 2.801 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.429e-05/0.2799, allocations: 8 kB / 434.8 MB, free: 2.793 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.2799, allocations: 0 / 434.8 MB, free: 2.793 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003802/0.2802, allocations: 56.97 kB / 434.9 MB, free: 2.734 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004052/0.2807, allocations: 67.84 kB / 434.9 MB, free: 2.668 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002194/0.2828, allocations: 1.468 MB / 436.4 MB, free: 1.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003853/0.2832, allocations: 51.7 kB / 436.5 MB, free: 1.039 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.533e-05/0.2833, allocations: 12 kB / 436.5 MB, free: 1.027 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.0002519/0.2835, allocations: 157.2 kB / 436.6 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.578e-05/0.2836, allocations: 31.8 kB / 436.7 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.612e-05/0.2837, allocations: 30.2 kB / 436.7 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/0.2837, allocations: 4 kB / 436.7 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.796e-06/0.2837, allocations: 0 / 436.7 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.147e-06/0.2837, allocations: 0 / 436.7 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000565/0.2842, allocations: 312.5 kB / 437 MB, free: 460 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.2843, allocations: 0 / 437 MB, free: 460 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000304/0.2846, allocations: 43.86 kB / 437 MB, free: 416 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002755/0.2848, allocations: 48.81 kB / 437.1 MB, free: 364 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.209e-05/0.2849, allocations: 7.984 kB / 437.1 MB, free: 356 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001916/0.2868, allocations: 1.319 MB / 438.4 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.2868, allocations: 160 / 438.4 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001111/0.2879, allocations: 353 kB / 438.8 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001553/0.288, allocations: 43.8 kB / 438.8 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.4e-05/0.2881, allocations: 0 / 438.8 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002941/0.2884, allocations: 27.98 kB / 438.8 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001126/0.2885, allocations: 31.88 kB / 438.9 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.474e-05/0.2885, allocations: 8 kB / 438.9 MB, free: 14.45 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002862/0.2888, allocations: 189.1 kB / 439.1 MB, free: 14.26 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2888, allocations: 0 / 439.1 MB, free: 14.26 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006877/0.2895, allocations: 91.78 kB / 439.1 MB, free: 14.17 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.001508/0.291, allocations: 0.8863 MB / 440 MB, free: 13.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009767/0.292, allocations: 302.9 kB / 440.3 MB, free: 12.94 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.292, allocations: 0 / 440.3 MB, free: 12.94 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004942/0.2925, allocations: 193.8 kB / 440.5 MB, free: 12.74 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004092/0.2929, allocations: 32.42 kB / 440.5 MB, free: 12.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006996/0.2999, allocations: 2.912 MB / 443.5 MB, free: 9.645 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006941/0.3006, allocations: 0.7755 MB / 444.2 MB, free: 8.844 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002124/0.3008, allocations: 22.3 kB / 444.3 MB, free: 8.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002315/0.301, allocations: 99.41 kB / 444.4 MB, free: 8.723 MB / 350.1 MB Notification: Performance of SimCode: time 2.475e-06/0.301, allocations: 0 / 444.4 MB, free: 8.723 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03189/0.3329, allocations: 6.291 MB / 450.6 MB, free: 2.605 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.15/12.48, allocations: 11.44 kB / 450.7 MB, free: 2.598 MB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --stepSize=0.00025 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.979480144975241] Failed to read output from testmodel.py, exit status != 0: ['time', 'inductor1.i', 'inductor2.i'] 12.65237392403651 12.673994752 12.40388694 Calling exit ...