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.001411/0.001411, allocations: 106.5 kB / 19.74 MB, free: 2.566 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.00158/0.00158, allocations: 218.7 kB / 22.92 MB, free: 5.535 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.284/1.284, allocations: 230.5 MB / 256.4 MB, free: 8.418 MB / 206.1 MB " [Timeout remaining time 179] 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.001784/0.001784, allocations: 64.05 kB / 376.1 MB, free: 4.062 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2049/0.2067, allocations: 53.33 MB / 429.4 MB, free: 7.535 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003671/0.2104, allocations: 2.906 MB / 432.3 MB, free: 4.617 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001113/0.2115, allocations: 0.7711 MB / 433.1 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001137/0.2116, allocations: 4 kB / 433.1 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001394/0.2117, allocations: 51.5 kB / 433.2 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001574/0.2119, allocations: 91.19 kB / 433.2 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000295/0.2122, allocations: 115.7 kB / 433.4 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003679/0.2125, allocations: 362.4 kB / 433.7 MB, free: 3.227 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001729/0.2127, allocations: 87.27 kB / 433.8 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001511/0.2129, allocations: 147.4 kB / 433.9 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002034/0.2131, allocations: 155.3 kB / 434.1 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.139e-05/0.2131, allocations: 28 kB / 434.1 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.555e-05/0.2132, allocations: 32 kB / 434.1 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.55e-05/0.2132, allocations: 67.75 kB / 434.2 MB, free: 2.711 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001524/0.2134, allocations: 163.3 kB / 434.4 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003619/0.2138, allocations: 370.9 kB / 434.7 MB, free: 2.191 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.2138, allocations: 4 kB / 434.7 MB, free: 2.188 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2138, allocations: 0 / 434.7 MB, free: 2.188 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.152e-06/0.2138, allocations: 0 / 434.7 MB, free: 2.188 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.0009322/0.2147, allocations: 0.6131 MB / 435.4 MB, free: 1.527 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.238e-05/0.2147, allocations: 8.031 kB / 435.4 MB, free: 1.52 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.081e-05/0.2148, allocations: 70.66 kB / 435.4 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.656e-05/0.2149, allocations: 36.7 kB / 435.5 MB, free: 1.406 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003222/0.2152, allocations: 268.5 kB / 435.7 MB, free: 1.105 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.158e-05/0.2153, allocations: 76.62 kB / 435.8 MB, free: 1.02 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.932e-05/0.2153, allocations: 28.38 kB / 435.8 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004544/0.2158, allocations: 305.6 kB / 436.1 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.749e-06/0.2158, allocations: 0 / 436.1 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.843e-05/0.2158, allocations: 12 kB / 436.1 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.2158, allocations: 4 kB / 436.1 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003191/0.2161, allocations: 198.1 kB / 436.3 MB, free: 480 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001531/0.2177, allocations: 1.112 MB / 437.4 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002848/0.218, allocations: 154.5 kB / 437.6 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001246/0.2181, allocations: 75.92 kB / 437.7 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.054e-05/0.2181, allocations: 7.984 kB / 437.7 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002489/0.2183, allocations: 168.2 kB / 437.8 MB, free: 14.85 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.342e-06/0.2184, allocations: 0 / 437.8 MB, free: 14.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0009861/0.2193, allocations: 385.7 kB / 438.2 MB, free: 14.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.354e-05/0.2194, allocations: 102.8 kB / 438.3 MB, free: 14.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002259/0.2196, allocations: 229 kB / 438.5 MB, free: 14.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.604e-05/0.2197, allocations: 29.7 kB / 438.6 MB, free: 14.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000129/0.2198, allocations: 192.4 kB / 438.8 MB, free: 13.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.349e-05/0.2198, allocations: 63.48 kB / 438.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.912e-05/0.2199, allocations: 57.7 kB / 438.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.2201, allocations: 334.8 kB / 439.2 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001219/0.2202, allocations: 67.97 kB / 439.3 MB, free: 13.33 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001775/0.2204, allocations: 150.1 kB / 439.4 MB, free: 13.15 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002763/0.2206, allocations: 188.2 kB / 439.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.2206, allocations: 0 / 439.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004105/0.2211, allocations: 273.7 kB / 439.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.263e-05/0.2211, allocations: 12.16 kB / 439.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.2211, allocations: 4 kB / 439.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002377/0.2213, allocations: 48.81 kB / 439.9 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002059/0.2215, allocations: 59.91 kB / 440 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001312/0.2228, allocations: 1.569 MB / 441.6 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002057/0.223, allocations: 39.77 kB / 441.6 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.911e-05/0.2231, allocations: 12 kB / 441.6 MB, free: 10.79 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.000136/0.2232, allocations: 141.7 kB / 441.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.46e-05/0.2232, allocations: 23.86 kB / 441.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.759e-05/0.2233, allocations: 30.23 kB / 441.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.2233, allocations: 4 kB / 441.8 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-06/0.2233, allocations: 0 / 441.8 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.2233, allocations: 3.938 kB / 441.8 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000312/0.2236, allocations: 333.3 kB / 442.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.2236, allocations: 0 / 442.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001526/0.2237, allocations: 31.98 kB / 442.2 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001725/0.2239, allocations: 52.81 kB / 442.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.583e-05/0.2239, allocations: 4 kB / 442.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001162/0.2251, allocations: 1.43 MB / 443.7 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2251, allocations: 7.938 kB / 443.7 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000586/0.2257, allocations: 325.7 kB / 444 MB, free: 8.195 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001027/0.2258, allocations: 116.9 kB / 444.1 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.156e-05/0.2258, allocations: 4 kB / 444.1 MB, free: 8.059 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001618/0.226, allocations: 23.97 kB / 444.1 MB, free: 8.035 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.405e-05/0.2261, allocations: 23.97 kB / 444.1 MB, free: 8.012 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.302e-05/0.2261, allocations: 7.984 kB / 444.2 MB, free: 8.004 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001376/0.2262, allocations: 160.5 kB / 444.3 MB, free: 7.852 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2262, allocations: 4.062 kB / 444.3 MB, free: 7.848 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003263/0.2265, allocations: 75.89 kB / 444.4 MB, free: 7.773 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.0009034/0.2274, allocations: 0.8724 MB / 445.3 MB, free: 6.871 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004992/0.2279, allocations: 276 kB / 445.5 MB, free: 6.59 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2279, allocations: 0 / 445.5 MB, free: 6.59 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002686/0.2282, allocations: 190.6 kB / 445.7 MB, free: 6.391 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002857/0.2285, allocations: 40.78 kB / 445.8 MB, free: 6.352 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003438/0.2319, allocations: 2.607 MB / 448.4 MB, free: 3.617 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003398/0.2323, allocations: 0.7558 MB / 449.1 MB, free: 2.836 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.717e-05/0.2324, allocations: 26.28 kB / 449.1 MB, free: 2.809 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001195/0.2325, allocations: 87.41 kB / 449.2 MB, free: 2.723 MB / 350.1 MB Notification: Performance of SimCode: time 4.4e-07/0.2325, allocations: 0 / 449.2 MB, free: 2.723 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03377/0.2662, allocations: 5.675 MB / 454.9 MB, free: 13.2 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.55/10.81, allocations: 7.438 kB / 454.9 MB, free: 13.19 MB / 366.1 MB " [Timeout remaining time 649] (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 --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: 12.948056573004578]