Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.001373/0.001373, allocations: 120.1 kB / 18.49 MB, free: 4.59 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.001314/0.001314, allocations: 214.2 kB / 21.45 MB, free: 1.637 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.464/1.464, allocations: 230.4 MB / 254.7 MB, free: 15.03 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.SwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001992/0.001992, allocations: 67.91 kB / 373.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09862/0.1006, allocations: 53.37 MB / 427.1 MB, free: 4.625 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004732/0.1053, allocations: 2.9 MB / 430 MB, free: 1.711 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001788/0.1071, allocations: 0.7789 MB / 430.8 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003166/0.1075, allocations: 4 kB / 430.8 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002308/0.1077, allocations: 47.5 kB / 430.8 MB, free: 0.875 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002846/0.108, allocations: 95.19 kB / 430.9 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004132/0.1084, allocations: 103.7 kB / 431 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005364/0.1089, allocations: 370.4 kB / 431.4 MB, free: 324 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002247/0.1091, allocations: 87.27 kB / 431.4 MB, free: 228 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002335/0.1094, allocations: 151.5 kB / 431.6 MB, free: 76 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1961/0.3055, allocations: 140.3 kB / 431.7 MB, free: 7.805 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001209/0.3056, allocations: 30 kB / 431.8 MB, free: 7.805 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001022/0.3057, allocations: 32.12 kB / 431.8 MB, free: 7.805 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.618e-05/0.3058, allocations: 71.64 kB / 431.9 MB, free: 7.805 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001825/0.306, allocations: 170.4 kB / 432 MB, free: 7.805 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004391/0.3064, allocations: 366.9 kB / 432.4 MB, free: 7.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.3064, allocations: 0.625 kB / 432.4 MB, free: 7.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.3064, allocations: 0.9688 kB / 432.4 MB, free: 7.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.285e-06/0.3064, allocations: 1.031 kB / 432.4 MB, free: 7.75 MB / 350.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.0009401/0.3073, allocations: 0.611 MB / 433 MB, free: 7.297 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.3074, allocations: 10.28 kB / 433 MB, free: 7.297 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.648e-05/0.3074, allocations: 9.688 kB / 433 MB, free: 7.297 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.271e-05/0.3075, allocations: 67.45 kB / 433.1 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.805e-05/0.3075, allocations: 40.48 kB / 433.1 MB, free: 7.238 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003344/0.3079, allocations: 264.1 kB / 433.4 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.62e-05/0.3079, allocations: 78.27 kB / 433.5 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.214e-05/0.308, allocations: 32.38 kB / 433.5 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004284/0.3084, allocations: 299.5 kB / 433.8 MB, free: 6.887 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.3084, allocations: 0 / 433.8 MB, free: 6.887 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.89e-05/0.3085, allocations: 16.86 kB / 433.8 MB, free: 6.887 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.049e-05/0.3085, allocations: 7.281 kB / 433.8 MB, free: 6.887 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002973/0.3088, allocations: 188.6 kB / 434 MB, free: 6.887 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00136/0.3101, allocations: 1.122 MB / 435.1 MB, free: 6.266 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002731/0.3104, allocations: 147.8 kB / 435.3 MB, free: 6.242 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001172/0.3105, allocations: 74.66 kB / 435.3 MB, free: 6.234 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.876e-05/0.3105, allocations: 2.438 kB / 435.3 MB, free: 6.234 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002324/0.3108, allocations: 157.9 kB / 435.5 MB, free: 6.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.613e-06/0.3108, allocations: 0 / 435.5 MB, free: 6.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001006/0.3118, allocations: 392.6 kB / 435.9 MB, free: 6.008 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.298e-05/0.3118, allocations: 106.1 kB / 436 MB, free: 5.883 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000185/0.312, allocations: 228.3 kB / 436.2 MB, free: 5.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.906e-05/0.312, allocations: 30.77 kB / 436.2 MB, free: 5.738 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.81e-05/0.3121, allocations: 184.4 kB / 436.4 MB, free: 5.609 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.187e-05/0.3121, allocations: 71.78 kB / 436.5 MB, free: 5.566 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.476e-05/0.3122, allocations: 57.92 kB / 436.5 MB, free: 5.551 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.907e-05/0.3123, allocations: 337.6 kB / 436.9 MB, free: 5.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001234/0.3124, allocations: 69.05 kB / 436.9 MB, free: 5.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001452/0.3126, allocations: 141.1 kB / 437.1 MB, free: 5.145 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002434/0.3128, allocations: 193.9 kB / 437.3 MB, free: 5.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.3128, allocations: 1.156 kB / 437.3 MB, free: 5.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004259/0.3132, allocations: 277.3 kB / 437.5 MB, free: 5.012 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.3132, allocations: 5.5 kB / 437.5 MB, free: 5.012 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.774e-06/0.3133, allocations: 6.625 kB / 437.5 MB, free: 5.008 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002678/0.3135, allocations: 55.36 kB / 437.6 MB, free: 4.996 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002141/0.3137, allocations: 54.17 kB / 437.6 MB, free: 4.996 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001039/0.3148, allocations: 1.563 MB / 439.2 MB, free: 3.508 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002267/0.315, allocations: 39.23 kB / 439.2 MB, free: 3.492 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.147e-05/0.315, allocations: 12.58 kB / 439.3 MB, free: 3.492 MB / 350.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.0001121/0.3151, allocations: 155.2 kB / 439.4 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.442e-05/0.3152, allocations: 24.92 kB / 439.4 MB, free: 3.355 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.506e-05/0.3152, allocations: 24.55 kB / 439.5 MB, free: 3.348 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.3152, allocations: 5.219 kB / 439.5 MB, free: 3.348 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.3152, allocations: 0.9375 kB / 439.5 MB, free: 3.348 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.3152, allocations: 0.6562 kB / 439.5 MB, free: 3.348 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002792/0.3155, allocations: 326.8 kB / 439.8 MB, free: 3.148 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.3155, allocations: 0 / 439.8 MB, free: 3.148 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001659/0.3157, allocations: 36.16 kB / 439.8 MB, free: 3.148 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001858/0.3159, allocations: 54.56 kB / 439.9 MB, free: 3.137 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.948e-05/0.3159, allocations: 6.688 kB / 439.9 MB, free: 3.137 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008372/0.3167, allocations: 1.42 MB / 441.3 MB, free: 1.781 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.3167, allocations: 1.531 kB / 441.3 MB, free: 1.781 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005861/0.3173, allocations: 326.5 kB / 441.6 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.968e-05/0.3174, allocations: 116.7 kB / 441.7 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.194e-05/0.3174, allocations: 6.125 kB / 441.7 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001652/0.3176, allocations: 17.75 kB / 441.8 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.763e-05/0.3177, allocations: 32.86 kB / 441.8 MB, free: 1.531 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.427e-05/0.3177, allocations: 9.281 kB / 441.8 MB, free: 1.527 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001205/0.3178, allocations: 162.6 kB / 442 MB, free: 1.426 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3178, allocations: 2.906 kB / 442 MB, free: 1.426 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003601/0.3182, allocations: 85.59 kB / 442 MB, free: 1.402 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.0008357/0.319, allocations: 0.8676 MB / 442.9 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005445/0.3195, allocations: 280.8 kB / 443.2 MB, free: 0.543 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.3195, allocations: 1.406 kB / 443.2 MB, free: 0.543 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002572/0.3198, allocations: 187.2 kB / 443.4 MB, free: 420 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002966/0.3201, allocations: 47.56 kB / 443.4 MB, free: 400 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003972/0.3241, allocations: 2.596 MB / 446 MB, free: 14.59 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004/0.3245, allocations: 0.7614 MB / 446.8 MB, free: 13.89 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001013/0.3246, allocations: 27.88 kB / 446.8 MB, free: 13.89 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001435/0.3247, allocations: 83.48 kB / 446.9 MB, free: 13.82 MB / 366.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3247, allocations: 0 / 446.9 MB, free: 13.82 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02831/0.353, allocations: 5.713 MB / 452.6 MB, free: 13.12 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.94/12.29, allocations: 9.5 kB / 452.6 MB, free: 13.12 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --stepSize=0.00025 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.76959545299178] Failed to read output from testmodel.py, exit status != 0: ['time', 'inductor1.i', 'inductor2.i'] 12.437594044022262 12.452640284 12.143193951 Calling exit ...