Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) 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.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStatic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001764/0.001764, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002152/0.002152, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.537/1.537, allocations: 227.7 MB / 247.1 MB, free: 10.28 MB / 206.1 MB 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.001924/0.001924, allocations: 60.11 kB / 307.3 MB, free: 380 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1032, allocations: 50.54 MB / 357.9 MB, free: 13.81 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic): time 0.01406/0.1173, allocations: 11.41 MB / 369.3 MB, free: 2.344 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1742/0.2915, allocations: 3.508 MB / 372.8 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001947/0.2935, allocations: 38.16 kB / 372.8 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00157/0.2951, allocations: 0.6936 MB / 373.5 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003709/0.2988, allocations: 0.9779 MB / 374.5 MB, free: 9.121 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002366/0.3012, allocations: 0.9388 MB / 375.4 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00546/0.3067, allocations: 3.545 MB / 379 MB, free: 8.062 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001449/0.3082, allocations: 0.8974 MB / 379.9 MB, free: 7.645 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002277/0.3105, allocations: 1.321 MB / 381.2 MB, free: 6.992 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002649/0.3131, allocations: 1.557 MB / 382.8 MB, free: 6.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007685/0.3139, allocations: 358.3 kB / 383.1 MB, free: 6.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009194/0.3148, allocations: 392.8 kB / 383.5 MB, free: 6.238 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005609/0.3154, allocations: 0.7388 MB / 384.2 MB, free: 5.727 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001577/0.317, allocations: 1.528 MB / 385.8 MB, free: 4.707 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00382/0.3208, allocations: 4.365 MB / 390.1 MB, free: 2.258 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.3208, allocations: 0 / 390.1 MB, free: 2.258 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.3209, allocations: 1.219 kB / 390.1 MB, free: 2.258 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001029/0.321, allocations: 0 / 390.1 MB, free: 2.258 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 531 * Number of variables: 531 Notification: Performance of Generate backend data structure: time 0.007455/0.3284, allocations: 3.212 MB / 393.3 MB, free: 20 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.267e-05/0.3285, allocations: 13.33 kB / 393.3 MB, free: 16 kB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000489/0.329, allocations: 287.7 kB / 393.6 MB, free: 15.79 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001289/0.3303, allocations: 349.3 kB / 394 MB, free: 15.62 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002985/0.3333, allocations: 1.445 MB / 395.4 MB, free: 14.51 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001407/0.3334, allocations: 157.5 kB / 395.6 MB, free: 14.44 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003321/0.3338, allocations: 211 kB / 395.8 MB, free: 14.36 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004073/0.3379, allocations: 1.876 MB / 397.7 MB, free: 13.24 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.303e-05/0.3379, allocations: 5.312 kB / 397.7 MB, free: 13.24 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001975/0.3382, allocations: 81.41 kB / 397.7 MB, free: 13.18 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.171e-05/0.3382, allocations: 50.84 kB / 397.8 MB, free: 13.18 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003958/0.3422, allocations: 1.865 MB / 399.7 MB, free: 12.24 MB / 318.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01469/0.3569, allocations: 7.513 MB / 407.2 MB, free: 6.121 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004126/0.361, allocations: 2.279 MB / 409.4 MB, free: 3.793 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002823/0.3639, allocations: 1.347 MB / 410.8 MB, free: 2.457 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001387/0.364, allocations: 39.69 kB / 410.8 MB, free: 2.426 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.403e-05/0.3641, allocations: 56.56 kB / 410.9 MB, free: 2.359 MB / 318.1 MB Notification: Performance of pre-optimization done (n=238): time 4.799e-06/0.3641, allocations: 0 / 410.9 MB, free: 2.359 MB / 318.1 MB Notification: Performance of matching and sorting (n=355): time 0.06593/0.4301, allocations: 17.72 MB / 428.6 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.277e-05/0.4302, allocations: 86.2 kB / 428.7 MB, free: 428 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003224/0.4334, allocations: 1.988 MB / 430.7 MB, free: 14.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004029/0.4338, allocations: 81.7 kB / 430.8 MB, free: 14.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009028/0.4347, allocations: 1.022 MB / 431.8 MB, free: 13.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001248/0.436, allocations: 1.17 MB / 432.9 MB, free: 12.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009478/0.437, allocations: 0.4996 MB / 433.4 MB, free: 11.6 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.4371, allocations: 305.1 kB / 433.7 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00255/0.4397, allocations: 1.193 MB / 434.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002859/0.4425, allocations: 1.509 MB / 436.4 MB, free: 8.539 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005654/0.4482, allocations: 2.856 MB / 439.3 MB, free: 5.605 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-05/0.4483, allocations: 15.88 kB / 439.3 MB, free: 5.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=416) (initialization): time 0.01141/0.4597, allocations: 4.428 MB / 443.7 MB, free: 1.113 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.143e-05/0.4598, allocations: 8 kB / 443.8 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.758e-05/0.4598, allocations: 7.984 kB / 443.8 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005899/0.4657, allocations: 1.349 MB / 445.1 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003113/0.4689, allocations: 0.5188 MB / 445.6 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03117/0.5001, allocations: 20.68 MB / 466.3 MB, free: 9.574 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002964/0.5031, allocations: 87.97 kB / 466.4 MB, free: 9.488 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003274/0.5034, allocations: 116 kB / 466.5 MB, free: 9.375 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (simpleSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,advancedSolenoid.armature.stopper_xMax.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (302): * Single equations (assignments): 295 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,4,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,50), (2,43)} Notification: Performance of prepare postOptimizeDAE: time 0.001498/0.5049, allocations: 0.5833 MB / 467.1 MB, free: 8.781 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006344/0.5056, allocations: 268.7 kB / 467.4 MB, free: 8.516 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01079/0.5164, allocations: 4.382 MB / 471.7 MB, free: 4.07 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.801e-05/0.5165, allocations: 36 kB / 471.8 MB, free: 4.035 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.191e-05/0.5165, allocations: 0 / 471.8 MB, free: 4.035 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.507e-05/0.5165, allocations: 27.88 kB / 471.8 MB, free: 4.008 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01823/0.5348, allocations: 8.437 MB / 480.2 MB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.501e-05/0.5348, allocations: 0 / 480.2 MB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00275/0.5376, allocations: 447.4 kB / 480.7 MB, free: 11.03 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005597/0.5432, allocations: 1.286 MB / 482 MB, free: 9.719 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004968/0.5437, allocations: 71.97 kB / 482 MB, free: 9.648 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02726/0.571, allocations: 19.26 MB / 0.4895 GB, free: 5.43 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.953e-06/0.5711, allocations: 8.031 kB / 0.4895 GB, free: 5.422 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01419/0.5853, allocations: 6.052 MB / 0.4955 GB, free: 15.26 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001971/0.5873, allocations: 0.6303 MB / 0.4961 GB, free: 14.61 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005328/0.5878, allocations: 64.12 kB / 0.4961 GB, free: 14.54 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001772/0.5896, allocations: 91.95 kB / 0.4962 GB, free: 14.45 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007379/0.5904, allocations: 262.8 kB / 0.4965 GB, free: 14.2 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002006/0.5906, allocations: 91.97 kB / 0.4966 GB, free: 14.11 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002389/0.593, allocations: 1.383 MB / 0.4979 GB, free: 12.7 MB / 430.1 MB Notification: Performance of sort global known variables: time 2e-07/0.593, allocations: 0 / 0.4979 GB, free: 12.7 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003666/0.5967, allocations: 0.8867 MB / 0.4988 GB, free: 11.81 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (advancedSolenoid.coil1.i,advancedSolenoid.coil2.i,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,advancedFeed_x.s,advancedFeed_x.v,simpleSolenoid.coil.i,simpleFeed_x.s,simpleFeed_x.v) * Number of discrete variables: 4 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (247): * Single equations (assignments): 240 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,3,100.0%), (1,2,100.0%), (1,2,100.0%), (1,4,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,41), (3,49)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01676/0.6134, allocations: 6.949 MB / 0.5056 GB, free: 4.883 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01612/0.6296, allocations: 4.563 MB / 0.51 GB, free: 212 kB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.734e-06/0.6296, allocations: 0 / 0.51 GB, free: 212 kB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005853/0.6355, allocations: 2.941 MB / 0.5129 GB, free: 13.18 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002571/0.6381, allocations: 407.8 kB / 0.5133 GB, free: 12.78 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2366/0.8747, allocations: 27.87 MB / 0.5405 GB, free: 138 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001791/0.8766, allocations: 1.739 MB / 0.5422 GB, free: 137.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002234/0.8788, allocations: 297.7 kB / 0.5425 GB, free: 137.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00156/0.8804, allocations: 1.091 MB / 0.5435 GB, free: 136.3 MB / 446.1 MB Notification: Performance of SimCode: time 1.303e-06/0.8804, allocations: 3.406 kB / 0.5435 GB, free: 136.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1384/1.019, allocations: 76.9 MB / 0.6186 GB, free: 70.88 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.04/16.06, allocations: 11.75 kB / 0.6186 GB, free: 70.88 MB / 446.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStatic_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-07 Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStatic.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.pipe 2>&1)