Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.00126/0.00126, allocations: 118.7 kB / 18.5 MB, free: 4.602 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.001332/0.001332, allocations: 210.5 kB / 21.46 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.431/1.431, allocations: 230.5 MB / 254.7 MB, free: 15.03 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001949/0.001949, allocations: 67.89 kB / 373.6 MB, free: 10.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1034, allocations: 53.31 MB / 426.9 MB, free: 4.855 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.005461/0.1089, allocations: 2.896 MB / 429.8 MB, free: 1.945 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00197/0.1108, allocations: 0.7789 MB / 430.6 MB, free: 1.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002672/0.1111, allocations: 4 kB / 430.6 MB, free: 1.156 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002257/0.1113, allocations: 51.5 kB / 430.6 MB, free: 1.105 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003001/0.1116, allocations: 91.19 kB / 430.7 MB, free: 1.016 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00039/0.112, allocations: 103.8 kB / 430.8 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004783/0.1125, allocations: 370.4 kB / 431.2 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002501/0.1127, allocations: 83.28 kB / 431.3 MB, free: 472 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001851/0.1129, allocations: 143.4 kB / 431.4 MB, free: 328 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002325/0.1132, allocations: 151.4 kB / 431.5 MB, free: 176 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.37e-05/0.1132, allocations: 32 kB / 431.6 MB, free: 144 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.486e-05/0.1133, allocations: 36 kB / 431.6 MB, free: 108 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.243e-05/0.1134, allocations: 67.77 kB / 431.7 MB, free: 40 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1832/0.2965, allocations: 165.2 kB / 431.8 MB, free: 7.977 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005327/0.2971, allocations: 370.6 kB / 432.2 MB, free: 7.953 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.2971, allocations: 0 / 432.2 MB, free: 7.953 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2971, allocations: 0.5938 kB / 432.2 MB, free: 7.953 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.424e-06/0.2971, allocations: 0 / 432.2 MB, free: 7.953 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.0009279/0.298, allocations: 0.6091 MB / 432.8 MB, free: 7.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.685e-05/0.298, allocations: 8.5 kB / 432.8 MB, free: 7.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.801e-05/0.2981, allocations: 65.48 kB / 432.9 MB, free: 7.461 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.156e-05/0.2982, allocations: 41.22 kB / 432.9 MB, free: 7.441 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003211/0.2985, allocations: 271.2 kB / 433.2 MB, free: 7.219 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.158e-05/0.2985, allocations: 78.55 kB / 433.3 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.763e-05/0.2986, allocations: 30.16 kB / 433.3 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004126/0.299, allocations: 299.9 kB / 433.6 MB, free: 7.086 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.305e-05/0.299, allocations: 5.078 kB / 433.6 MB, free: 7.086 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.529e-05/0.299, allocations: 12.66 kB / 433.6 MB, free: 7.086 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.056e-05/0.2991, allocations: 7.094 kB / 433.6 MB, free: 7.086 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002985/0.2994, allocations: 189.6 kB / 433.8 MB, free: 7.086 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001318/0.3007, allocations: 1.126 MB / 434.9 MB, free: 6.465 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002699/0.3009, allocations: 149.8 kB / 435.1 MB, free: 6.441 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001217/0.3011, allocations: 73.39 kB / 435.1 MB, free: 6.434 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.797e-05/0.3011, allocations: 2.188 kB / 435.1 MB, free: 6.434 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002267/0.3013, allocations: 160.6 kB / 435.3 MB, free: 6.359 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.282e-06/0.3013, allocations: 0 / 435.3 MB, free: 6.359 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0009255/0.3022, allocations: 384.6 kB / 435.7 MB, free: 6.211 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.448e-05/0.3023, allocations: 110.8 kB / 435.8 MB, free: 6.086 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001809/0.3025, allocations: 221 kB / 436 MB, free: 5.977 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.893e-05/0.3025, allocations: 33.52 kB / 436 MB, free: 5.945 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.86e-05/0.3026, allocations: 180.8 kB / 436.2 MB, free: 5.816 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.049e-05/0.3026, allocations: 71.14 kB / 436.3 MB, free: 5.773 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.958e-05/0.3027, allocations: 60.48 kB / 436.3 MB, free: 5.758 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.286e-05/0.3027, allocations: 336.1 kB / 436.7 MB, free: 5.441 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001218/0.3029, allocations: 65.34 kB / 436.7 MB, free: 5.441 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001481/0.303, allocations: 143.1 kB / 436.9 MB, free: 5.355 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002279/0.3032, allocations: 190 kB / 437.1 MB, free: 5.289 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.3032, allocations: 0 / 437.1 MB, free: 5.289 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000387/0.3036, allocations: 279.8 kB / 437.3 MB, free: 5.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.3036, allocations: 8.156 kB / 437.3 MB, free: 5.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.3036, allocations: 3.531 kB / 437.3 MB, free: 5.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002432/0.3039, allocations: 53.08 kB / 437.4 MB, free: 5.223 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002021/0.3041, allocations: 58.81 kB / 437.5 MB, free: 5.219 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009405/0.305, allocations: 1.561 MB / 439 MB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002117/0.3052, allocations: 39.09 kB / 439.1 MB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.944e-05/0.3053, allocations: 12.67 kB / 439.1 MB, free: 3.715 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.0001071/0.3054, allocations: 150.6 kB / 439.2 MB, free: 3.598 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.225e-05/0.3054, allocations: 27.14 kB / 439.2 MB, free: 3.582 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.406e-05/0.3054, allocations: 29.97 kB / 439.3 MB, free: 3.574 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.3055, allocations: 3.625 kB / 439.3 MB, free: 3.574 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.3055, allocations: 0 / 439.3 MB, free: 3.574 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.3055, allocations: 1.5 kB / 439.3 MB, free: 3.574 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002574/0.3057, allocations: 325.2 kB / 439.6 MB, free: 3.375 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.3057, allocations: 4.156 kB / 439.6 MB, free: 3.375 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001548/0.3059, allocations: 30.58 kB / 439.6 MB, free: 3.375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001637/0.306, allocations: 56.75 kB / 439.7 MB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.516e-05/0.3061, allocations: 2.688 kB / 439.7 MB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007601/0.3068, allocations: 1.418 MB / 441.1 MB, free: 2.012 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.3068, allocations: 3.266 kB / 441.1 MB, free: 2.012 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005492/0.3074, allocations: 329.9 kB / 441.4 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.835e-05/0.3074, allocations: 117.5 kB / 441.5 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.503e-05/0.3075, allocations: 6.578 kB / 441.5 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001598/0.3076, allocations: 17.36 kB / 441.6 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.752e-05/0.3077, allocations: 27.31 kB / 441.6 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.311e-05/0.3077, allocations: 5.922 kB / 441.6 MB, free: 1.812 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001173/0.3078, allocations: 167 kB / 441.8 MB, free: 1.734 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3078, allocations: 0 / 441.8 MB, free: 1.734 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003499/0.3082, allocations: 86.73 kB / 441.8 MB, free: 1.719 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.0007165/0.3089, allocations: 0.8651 MB / 442.7 MB, free: 1.016 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004586/0.3094, allocations: 279.8 kB / 443 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3094, allocations: 0 / 443 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002295/0.3096, allocations: 193.6 kB / 443.2 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002696/0.3099, allocations: 43.42 kB / 443.2 MB, free: 0.707 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003404/0.3133, allocations: 2.603 MB / 445.8 MB, free: 14.9 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000438/0.3137, allocations: 0.7623 MB / 446.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001016/0.3138, allocations: 24.2 kB / 446.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001187/0.3139, allocations: 84.05 kB / 446.7 MB, free: 14.13 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3139, allocations: 0 / 446.7 MB, free: 14.13 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03655/0.3505, allocations: 5.684 MB / 452.4 MB, free: 13.48 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/11.82, allocations: 5.406 kB / 452.4 MB, free: 13.47 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --stepSize=0.00025 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.157963715028018] Failed to read output from testmodel.py, exit status != 0: ['time', 'inductor1.i', 'inductor2.i'] 11.912806053180248 11.927722023 11.627407512 Calling exit ...