Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.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 trunk/package.mo", uses=false) 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.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001373/0.001373, allocations: 108.7 kB / 17.33 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001726/0.001726, allocations: 201.8 kB / 18.26 MB, free: 5.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.478/1.478, allocations: 227.4 MB / 246.4 MB, free: 9.094 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 60.31 kB / 306.6 MB, free: 0.6328 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08864/0.08988, allocations: 50.53 MB / 357.1 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01249/0.1024, allocations: 11.29 MB / 368.4 MB, free: 2.742 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1531/0.2556, allocations: 3.807 MB / 372.2 MB, free: 9.027 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001783/0.2574, allocations: 38.91 kB / 372.2 MB, free: 9.027 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006938/0.2644, allocations: 8.048 MB / 380.3 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005014/0.2694, allocations: 4.597 MB / 384.9 MB, free: 6.727 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001875/0.2713, allocations: 0.8078 MB / 385.7 MB, free: 6.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005226/0.2766, allocations: 5.405 MB / 391.1 MB, free: 5.066 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001026/0.2776, allocations: 0.892 MB / 392 MB, free: 4.594 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003147/0.2808, allocations: 2.906 MB / 394.9 MB, free: 2.715 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004343/0.2851, allocations: 5.348 MB / 400.2 MB, free: 13.48 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005228/0.2857, allocations: 362.9 kB / 400.6 MB, free: 13.13 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007548/0.2864, allocations: 400 kB / 401 MB, free: 12.74 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001277/0.2877, allocations: 1.97 MB / 402.9 MB, free: 10.77 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001966/0.2897, allocations: 2.844 MB / 405.8 MB, free: 7.906 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005038/0.2947, allocations: 7.286 MB / 413.1 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2947, allocations: 0 / 413.1 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.2948, allocations: 0 / 413.1 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.948e-05/0.2948, allocations: 0 / 413.1 MB, free: 0.8477 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.01011/0.305, allocations: 7.736 MB / 420.8 MB, free: 9.016 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.403e-05/0.305, allocations: 8.031 kB / 420.8 MB, free: 9.008 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003272/0.3054, allocations: 291.7 kB / 421.1 MB, free: 8.711 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001365/0.3067, allocations: 0.8999 MB / 422 MB, free: 7.801 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003483/0.3102, allocations: 3.218 MB / 425.2 MB, free: 4.703 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000125/0.3104, allocations: 156.2 kB / 425.4 MB, free: 4.547 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002876/0.3107, allocations: 207.9 kB / 425.6 MB, free: 4.344 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003385/0.3141, allocations: 2.097 MB / 427.7 MB, free: 2.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.853e-05/0.3141, allocations: 11.84 kB / 427.7 MB, free: 2.168 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001703/0.3143, allocations: 84 kB / 427.8 MB, free: 2.086 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.744e-05/0.3143, allocations: 52 kB / 427.8 MB, free: 2.035 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00316/0.3175, allocations: 1.845 MB / 429.7 MB, free: 184 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01253/0.3301, allocations: 9.019 MB / 438.7 MB, free: 7.047 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003301/0.3334, allocations: 2.321 MB / 441 MB, free: 4.668 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002245/0.3356, allocations: 1.358 MB / 442.4 MB, free: 3.309 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001364/0.3358, allocations: 40.78 kB / 442.4 MB, free: 3.273 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001987/0.3378, allocations: 1.128 MB / 443.5 MB, free: 2.109 MB / 350.1 MB Notification: Performance of pre-optimization done (n=246): time 4.518e-06/0.3378, allocations: 0 / 443.5 MB, free: 2.109 MB / 350.1 MB Notification: Performance of matching and sorting (n=371): time 0.06567/0.4035, allocations: 22.44 MB / 466 MB, free: 11.37 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02836/0.4319, allocations: 13.72 MB / 479.7 MB, free: 13.3 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01932/0.4512, allocations: 15.04 MB / 494.7 MB, free: 14.26 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005941/0.4518, allocations: 85.7 kB / 494.8 MB, free: 14.17 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003389/0.4552, allocations: 3.776 MB / 498.6 MB, free: 10.39 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00157/0.4568, allocations: 1.228 MB / 499.8 MB, free: 9.176 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001001/0.4578, allocations: 0.5157 MB / 0.4886 GB, free: 8.652 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001008/0.4579, allocations: 313.2 kB / 0.4889 GB, free: 8.344 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002547/0.4605, allocations: 1.225 MB / 0.4901 GB, free: 7.117 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002774/0.4633, allocations: 1.607 MB / 0.4917 GB, free: 5.43 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005433/0.4687, allocations: 2.969 MB / 0.4946 GB, free: 2.398 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.724e-06/0.4687, allocations: 0 / 0.4946 GB, free: 2.398 MB / 414.1 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.01206/0.4808, allocations: 5.201 MB / 0.4997 GB, free: 13.15 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.98e-05/0.4809, allocations: 4 kB / 0.4997 GB, free: 13.15 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.621e-05/0.4809, allocations: 8 kB / 0.4997 GB, free: 13.14 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006149/0.4871, allocations: 1.42 MB / 0.501 GB, free: 11.69 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002718/0.4898, allocations: 0.5338 MB / 0.5016 GB, free: 11.16 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2876/0.7774, allocations: 24.05 MB / 0.5251 GB, free: 1.883 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00327/0.7807, allocations: 119.9 kB / 0.5252 GB, free: 1.766 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005017/0.7812, allocations: 116 kB / 0.5253 GB, free: 1.652 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.comparisonWithFEA.nextTimeEvent,$whenCondition1,comparisonWithFEA.nextTimeEventScaled,$PRE.comparisonWithFEA.nextTimeEventScaled,comparisonWithFEA.nextTimeEvent,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 (313): * Single equations (assignments): 304 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,3,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (1,5,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,43), (3,50)} Notification: Performance of prepare postOptimizeDAE: time 0.155/0.9362, allocations: 2.189 MB / 0.5274 GB, free: 136.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001254/0.9375, allocations: 0.8269 MB / 0.5282 GB, free: 136.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01092/0.9484, allocations: 5.205 MB / 0.5333 GB, free: 135.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.69e-05/0.9485, allocations: 37 kB / 0.5333 GB, free: 135.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.303e-05/0.9485, allocations: 8.781 kB / 0.5334 GB, free: 135.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-05/0.9485, allocations: 24.45 kB / 0.5334 GB, free: 135.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02232/0.9709, allocations: 11.11 MB / 0.5442 GB, free: 133.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.806e-05/0.9709, allocations: 6.875 kB / 0.5442 GB, free: 133.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002282/0.9732, allocations: 448.9 kB / 0.5447 GB, free: 133.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005458/0.9787, allocations: 1.358 MB / 0.546 GB, free: 133 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003867/0.9791, allocations: 77.55 kB / 0.5461 GB, free: 132.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02118/1, allocations: 21.93 MB / 0.5675 GB, free: 115.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02278/1.023, allocations: 12.02 MB / 0.5792 GB, free: 108.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0133/1.036, allocations: 6.897 MB / 0.5859 GB, free: 101.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001717/1.038, allocations: 0.7744 MB / 0.5867 GB, free: 100.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001082/1.039, allocations: 64 kB / 0.5868 GB, free: 100.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003013/1.042, allocations: 95.95 kB / 0.5869 GB, free: 100.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009942/1.043, allocations: 267.3 kB / 0.5871 GB, free: 100.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000302/1.044, allocations: 95.98 kB / 0.5872 GB, free: 99.99 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.01166/1.055, allocations: 11.23 MB / 0.5982 GB, free: 88.78 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.31e-07/1.055, allocations: 0 / 0.5982 GB, free: 88.78 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004006/1.059, allocations: 1.094 MB / 0.5992 GB, free: 87.69 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 9 (advancedSolenoid.x,advancedSolenoid.coil1.i,advancedSolenoid.armature.stopper_xMin.v_rel,advancedSolenoid.coil2.i,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,$STATESET1.x,simpleSolenoid.x,simpleSolenoid.armature.stopper_xMin.v_rel) * Number of discrete variables: 7 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,$whenCondition1,comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Number of discrete states: 2 (comparisonWithFEA.nextTimeEventScaled,comparisonWithFEA.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (257): * Single equations (assignments): 246 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,2,100.0%), (1,2,100.0%), (1,4,100.0%), (1,5,100.0%), (1,3,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,49), (4,42)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01207/1.071, allocations: 7.878 MB / 0.6069 GB, free: 79.88 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01023/1.082, allocations: 4.877 MB / 0.6117 GB, free: 74.91 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.823e-06/1.082, allocations: 0.625 kB / 0.6117 GB, free: 74.91 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004212/1.086, allocations: 3.264 MB / 0.6149 GB, free: 71.54 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003998/1.09, allocations: 0.5751 MB / 0.6154 GB, free: 70.98 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2507/1.341, allocations: 91.48 MB / 0.7048 GB, free: 138.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003988/1.345, allocations: 4.05 MB / 0.7087 GB, free: 138.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001774/1.347, allocations: 314.8 kB / 0.709 GB, free: 138.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002489/1.349, allocations: 3.283 MB / 0.7122 GB, free: 137.1 MB / 462.1 MB Notification: Performance of SimCode: time 6.71e-07/1.349, allocations: 1.094 kB / 0.7122 GB, free: 137.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.929/5.278, allocations: 141.4 MB / 0.8503 GB, free: 13.52 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002155/5.278, allocations: 311.1 kB / 0.8506 GB, free: 13.14 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.306/11.58, allocations: 0 / 0.8506 GB, free: 13.14 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1)