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.001273/0.001273, allocations: 109.1 kB / 21.22 MB, free: 0.7383 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.001453/0.001453, allocations: 210.7 kB / 24.53 MB, free: 4.098 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.437/1.437, allocations: 230.5 MB / 258.2 MB, free: 8.012 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.001838/0.001838, allocations: 59.89 kB / 378.6 MB, free: 3.004 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3145/0.3163, allocations: 53.41 MB / 432 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004505/0.3208, allocations: 2.918 MB / 434.9 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001554/0.3224, allocations: 0.7711 MB / 435.7 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001393/0.3225, allocations: 8 kB / 435.7 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001788/0.3227, allocations: 51.5 kB / 435.7 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001755/0.3229, allocations: 83.19 kB / 435.8 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003514/0.3232, allocations: 119.7 kB / 435.9 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000462/0.3237, allocations: 366.4 kB / 436.3 MB, free: 2.363 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002148/0.3239, allocations: 95.33 kB / 436.4 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001753/0.3241, allocations: 135.5 kB / 436.5 MB, free: 2.137 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002517/0.3243, allocations: 151.4 kB / 436.7 MB, free: 1.988 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.827e-05/0.3244, allocations: 35.98 kB / 436.7 MB, free: 1.953 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.622e-05/0.3244, allocations: 32 kB / 436.7 MB, free: 1.922 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.443e-05/0.3245, allocations: 71.75 kB / 436.8 MB, free: 1.852 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001778/0.3247, allocations: 159.2 kB / 437 MB, free: 1.695 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004576/0.3252, allocations: 367.7 kB / 437.3 MB, free: 1.336 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.3252, allocations: 0 / 437.3 MB, free: 1.336 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.3252, allocations: 0 / 437.3 MB, free: 1.336 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.3252, allocations: 0 / 437.3 MB, free: 1.336 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.001098/0.3263, allocations: 0.5339 MB / 437.8 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/0.3263, allocations: 16.02 kB / 437.9 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.434e-05/0.3263, allocations: 16.84 kB / 437.9 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.251e-05/0.3264, allocations: 62.67 kB / 437.9 MB, free: 0.668 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.959e-05/0.3265, allocations: 40.7 kB / 438 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003917/0.3269, allocations: 206.7 kB / 438.2 MB, free: 412 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001191/0.327, allocations: 132 kB / 438.3 MB, free: 256 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.769e-05/0.3271, allocations: 32.12 kB / 438.3 MB, free: 224 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005087/0.3276, allocations: 297.9 kB / 438.6 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.3276, allocations: 0 / 438.6 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.321e-05/0.3276, allocations: 15.94 kB / 438.6 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.999e-06/0.3276, allocations: 8 kB / 438.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003616/0.328, allocations: 190.5 kB / 438.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001731/0.3297, allocations: 1.085 MB / 439.9 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003212/0.33, allocations: 146.6 kB / 440.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001304/0.3302, allocations: 72.83 kB / 440.1 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.01e-05/0.3302, allocations: 0 / 440.1 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002816/0.3305, allocations: 165.3 kB / 440.3 MB, free: 14.14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.282e-06/0.3305, allocations: 0 / 440.3 MB, free: 14.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001013/0.3315, allocations: 302.5 kB / 440.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001098/0.3316, allocations: 114.8 kB / 440.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002461/0.3318, allocations: 224.9 kB / 440.9 MB, free: 13.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.301e-05/0.3319, allocations: 33.7 kB / 441 MB, free: 13.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001454/0.332, allocations: 188.5 kB / 441.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.971e-05/0.3321, allocations: 67.38 kB / 441.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.815e-05/0.3322, allocations: 57.69 kB / 441.3 MB, free: 13.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.3323, allocations: 342.8 kB / 441.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000139/0.3325, allocations: 67.97 kB / 441.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002059/0.3327, allocations: 137.5 kB / 441.8 MB, free: 12.53 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002955/0.333, allocations: 192.1 kB / 442 MB, free: 12.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.333, allocations: 3.984 kB / 442 MB, free: 12.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004669/0.3335, allocations: 276.6 kB / 442.3 MB, free: 12.04 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.02e-05/0.3335, allocations: 8 kB / 442.3 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.3335, allocations: 3.938 kB / 442.3 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002828/0.3338, allocations: 56.81 kB / 442.3 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000221/0.334, allocations: 52.02 kB / 442.4 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001572/0.3356, allocations: 1.464 MB / 443.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002274/0.3358, allocations: 31.83 kB / 443.9 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.669e-05/0.3358, allocations: 15.98 kB / 443.9 MB, free: 10.29 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.0001698/0.336, allocations: 149.4 kB / 444 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.99e-05/0.336, allocations: 27.95 kB / 444.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.254e-05/0.3361, allocations: 34.25 kB / 444.1 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.113e-06/0.3361, allocations: 4 kB / 444.1 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.3361, allocations: 4 kB / 444.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.3361, allocations: 0 / 444.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000348/0.3364, allocations: 296.4 kB / 444.4 MB, free: 9.742 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.3364, allocations: 0 / 444.4 MB, free: 9.742 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001688/0.3366, allocations: 31.98 kB / 444.4 MB, free: 9.711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001998/0.3368, allocations: 60.75 kB / 444.5 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.468e-05/0.3368, allocations: 7.984 kB / 444.5 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001247/0.3381, allocations: 1.315 MB / 445.8 MB, free: 8.207 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.3381, allocations: 3.938 kB / 445.8 MB, free: 8.203 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006291/0.3387, allocations: 324.8 kB / 446.1 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.291e-05/0.3388, allocations: 43.73 kB / 446.2 MB, free: 7.824 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.185e-05/0.3388, allocations: 0 / 446.2 MB, free: 7.824 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001603/0.339, allocations: 19.98 kB / 446.2 MB, free: 7.805 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.478e-05/0.3391, allocations: 27.94 kB / 446.2 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.511e-05/0.3391, allocations: 12 kB / 446.2 MB, free: 7.766 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001489/0.3392, allocations: 164.5 kB / 446.4 MB, free: 7.609 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3392, allocations: 0 / 446.4 MB, free: 7.609 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003986/0.3396, allocations: 79.89 kB / 446.5 MB, free: 7.531 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.0009685/0.3406, allocations: 0.8667 MB / 447.3 MB, free: 6.633 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005548/0.3412, allocations: 278.4 kB / 447.6 MB, free: 6.348 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3412, allocations: 0 / 447.6 MB, free: 6.348 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002894/0.3415, allocations: 194 kB / 447.8 MB, free: 6.148 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002999/0.3418, allocations: 51.45 kB / 447.8 MB, free: 6.102 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004047/0.3458, allocations: 2.599 MB / 450.4 MB, free: 3.379 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004052/0.3462, allocations: 0.7519 MB / 451.2 MB, free: 2.598 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.744e-05/0.3463, allocations: 26.28 kB / 451.2 MB, free: 2.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001215/0.3464, allocations: 79.41 kB / 451.3 MB, free: 2.492 MB / 350.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3464, allocations: 0 / 451.3 MB, free: 2.492 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03092/0.3774, allocations: 5.9 MB / 457.2 MB, free: 12.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.5/12.88, allocations: 11.98 kB / 457.2 MB, free: 12.72 MB / 366.1 MB " [Timeout remaining time 647] (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: 15.421512280998286] Failed to read output from testmodel.py, exit status != 0: ['time', 'inductor1.i', 'inductor2.i'] 13.05096186301671 13.076232333 12.74645101 Calling exit ...