Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001941/0.001941, allocations: 109.1 kB / 21.22 MB, free: 0.7344 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.001432/0.001432, allocations: 211 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.477/1.477, allocations: 230.5 MB / 258.2 MB, free: 8.039 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001951/0.001951, allocations: 63.91 kB / 378.6 MB, free: 3.016 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2831/0.2851, allocations: 53.41 MB / 432 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004525/0.2896, allocations: 3.193 MB / 435.2 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001589/0.2912, allocations: 0.8218 MB / 436 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001872/0.2914, allocations: 7.938 kB / 436 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002192/0.2916, allocations: 63.42 kB / 436.1 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002237/0.2918, allocations: 103 kB / 436.2 MB, free: 2.484 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004778/0.2923, allocations: 123.7 kB / 436.3 MB, free: 2.363 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005349/0.2929, allocations: 426.1 kB / 436.7 MB, free: 1.945 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002377/0.2931, allocations: 100.3 kB / 436.8 MB, free: 1.844 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003018/0.2934, allocations: 171.4 kB / 437 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002673/0.2937, allocations: 175.2 kB / 437.1 MB, free: 1.504 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.233e-05/0.2937, allocations: 39.94 kB / 437.2 MB, free: 1.465 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.957e-05/0.2938, allocations: 40 kB / 437.2 MB, free: 1.426 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.647e-05/0.2939, allocations: 75.75 kB / 437.3 MB, free: 1.352 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001916/0.2941, allocations: 187.1 kB / 437.5 MB, free: 1.168 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005197/0.2946, allocations: 435 kB / 437.9 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.237e-06/0.2946, allocations: 7.984 kB / 437.9 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2946, allocations: 0 / 437.9 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.366e-06/0.2946, allocations: 0 / 437.9 MB, free: 0.7383 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.001101/0.2957, allocations: 0.5792 MB / 438.5 MB, free: 128 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.2958, allocations: 8.031 kB / 438.5 MB, free: 120 kB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.2e-05/0.2958, allocations: 12.78 kB / 438.5 MB, free: 108 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.702e-05/0.2958, allocations: 74.72 kB / 438.6 MB, free: 24 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002294/0.2961, allocations: 52.64 kB / 438.6 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004291/0.2965, allocations: 227.5 kB / 438.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001352/0.2966, allocations: 136 kB / 439 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.654e-05/0.2967, allocations: 32.12 kB / 439 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006001/0.2973, allocations: 330.8 kB / 439.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/0.2973, allocations: 0 / 439.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.718e-05/0.2974, allocations: 19.94 kB / 439.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.325e-05/0.2974, allocations: 16 kB / 439.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004434/0.2978, allocations: 214.5 kB / 439.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002067/0.2999, allocations: 1.314 MB / 440.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003589/0.3002, allocations: 170.4 kB / 441.1 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001639/0.3004, allocations: 84.86 kB / 441.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.245e-05/0.3004, allocations: 4 kB / 441.2 MB, free: 13.28 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003017/0.3007, allocations: 157.5 kB / 441.3 MB, free: 13.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.342e-06/0.3007, allocations: 0 / 441.3 MB, free: 13.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001138/0.3019, allocations: 326.4 kB / 441.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.013e-05/0.302, allocations: 114.8 kB / 441.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002937/0.3022, allocations: 261.8 kB / 442 MB, free: 12.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.219e-05/0.3023, allocations: 37.64 kB / 442 MB, free: 12.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000187/0.3025, allocations: 212.3 kB / 442.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.045e-05/0.3025, allocations: 75.38 kB / 442.3 MB, free: 12.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001055/0.3026, allocations: 62.02 kB / 442.4 MB, free: 11.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.3028, allocations: 338.8 kB / 442.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001703/0.303, allocations: 76.62 kB / 442.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002342/0.3032, allocations: 177.5 kB / 443 MB, free: 11.35 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003596/0.3036, allocations: 235.6 kB / 443.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.3036, allocations: 0 / 443.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007019/0.3043, allocations: 348.4 kB / 443.5 MB, free: 10.74 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.3043, allocations: 8 kB / 443.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.3043, allocations: 7.938 kB / 443.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000309/0.3046, allocations: 52.97 kB / 443.6 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002747/0.3049, allocations: 67.91 kB / 443.7 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001673/0.3066, allocations: 1.461 MB / 445.1 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003034/0.3069, allocations: 43.72 kB / 445.2 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.64e-05/0.3069, allocations: 16 kB / 445.2 MB, free: 8.973 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.0002158/0.3071, allocations: 149.9 kB / 445.3 MB, free: 8.816 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.599e-05/0.3072, allocations: 27.8 kB / 445.4 MB, free: 8.789 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.559e-05/0.3072, allocations: 34.27 kB / 445.4 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.3072, allocations: 0 / 445.4 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.3072, allocations: 0 / 445.4 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.3072, allocations: 7.984 kB / 445.4 MB, free: 8.742 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003663/0.3076, allocations: 308.4 kB / 445.7 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.554e-06/0.3076, allocations: 4 kB / 445.7 MB, free: 8.395 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001962/0.3078, allocations: 47.84 kB / 445.7 MB, free: 8.348 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001989/0.308, allocations: 56.81 kB / 445.8 MB, free: 8.289 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.751e-05/0.308, allocations: 0 / 445.8 MB, free: 8.289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001231/0.3093, allocations: 1.318 MB / 447.1 MB, free: 6.859 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.3093, allocations: 4.031 kB / 447.1 MB, free: 6.855 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007587/0.31, allocations: 359.7 kB / 447.5 MB, free: 6.488 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001005/0.3101, allocations: 35.81 kB / 447.5 MB, free: 6.453 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.378e-05/0.3102, allocations: 8 kB / 447.5 MB, free: 6.445 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001841/0.3104, allocations: 27.97 kB / 447.5 MB, free: 6.418 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.069e-05/0.3104, allocations: 31.89 kB / 447.6 MB, free: 6.387 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.662e-05/0.3105, allocations: 7.984 kB / 447.6 MB, free: 6.379 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002074/0.3107, allocations: 185.2 kB / 447.8 MB, free: 6.195 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3107, allocations: 0 / 447.8 MB, free: 6.195 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004379/0.3111, allocations: 87.84 kB / 447.9 MB, free: 6.109 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.001046/0.3122, allocations: 0.8824 MB / 448.7 MB, free: 5.191 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006101/0.3128, allocations: 299.1 kB / 449 MB, free: 4.887 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.3128, allocations: 4 kB / 449 MB, free: 4.883 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000309/0.3131, allocations: 205.9 kB / 449.2 MB, free: 4.672 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002604/0.3133, allocations: 37.31 kB / 449.3 MB, free: 4.641 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004375/0.3177, allocations: 2.918 MB / 452.2 MB, free: 1.574 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003935/0.3181, allocations: 0.7714 MB / 453 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001095/0.3182, allocations: 26.28 kB / 453 MB, free: 0.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001309/0.3183, allocations: 95.41 kB / 453.1 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of SimCode: time 6.72e-07/0.3183, allocations: 8 kB / 453.1 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03105/0.3494, allocations: 6.327 MB / 459.4 MB, free: 10.46 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.64/12.99, allocations: 8.672 kB / 459.4 MB, free: 10.46 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --stepSize=0.00025 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.573162466054782] Failed to read output from testmodel.py, exit status != 0: ['time', 'inductor1.i', 'inductor2.i'] 13.16255063196877 13.177428219 12.879729532 Calling exit ...