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.001792/0.001792, allocations: 118.2 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002054/0.002054, allocations: 206 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.452/1.452, allocations: 227.4 MB / 247 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001822/0.001822, allocations: 63.89 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2919/0.2938, allocations: 50.54 MB / 408.8 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01402/0.3078, allocations: 11.4 MB / 420.2 MB, free: 6.031 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008783/0.3167, allocations: 3.861 MB / 424.1 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002587/0.3193, allocations: 39.88 kB / 424.1 MB, free: 2.121 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008756/0.3281, allocations: 8.155 MB / 432.3 MB, free: 9.949 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007712/0.3359, allocations: 4.698 MB / 437 MB, free: 5.238 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002749/0.3386, allocations: 0.9205 MB / 437.9 MB, free: 4.316 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007889/0.3465, allocations: 5.412 MB / 443.3 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001744/0.3483, allocations: 0.8986 MB / 444.2 MB, free: 13.96 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005019/0.3534, allocations: 2.899 MB / 447.1 MB, free: 11.05 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006508/0.3599, allocations: 5.17 MB / 452.3 MB, free: 5.863 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009298/0.3608, allocations: 360 kB / 452.6 MB, free: 5.512 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00107/0.3619, allocations: 400 kB / 453 MB, free: 5.121 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001663/0.3636, allocations: 1.884 MB / 454.9 MB, free: 3.223 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003188/0.3668, allocations: 2.842 MB / 457.7 MB, free: 368 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009216/0.376, allocations: 7.43 MB / 465.2 MB, free: 8.898 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.666e-06/0.3761, allocations: 0 / 465.2 MB, free: 8.898 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.3761, allocations: 0 / 465.2 MB, free: 8.898 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002684/0.3764, allocations: 0 / 465.2 MB, free: 8.898 MB / 382.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.01569/0.3921, allocations: 8.043 MB / 473.2 MB, free: 0.7461 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.534e-05/0.3921, allocations: 11.97 kB / 473.2 MB, free: 0.7344 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004473/0.3926, allocations: 295.7 kB / 473.5 MB, free: 444 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002026/0.3946, allocations: 0.9491 MB / 474.5 MB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005522/0.4001, allocations: 3.308 MB / 477.8 MB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001841/0.4004, allocations: 160.2 kB / 477.9 MB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000531/0.4009, allocations: 207.9 kB / 478.1 MB, free: 11.74 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004247/0.4052, allocations: 2.093 MB / 480.2 MB, free: 9.582 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.317e-05/0.4052, allocations: 0 / 480.2 MB, free: 9.582 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002033/0.4055, allocations: 91.92 kB / 480.3 MB, free: 9.492 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-05/0.4055, allocations: 52 kB / 480.4 MB, free: 9.441 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003926/0.4094, allocations: 1.845 MB / 482.2 MB, free: 7.59 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01743/0.4269, allocations: 8.99 MB / 491.2 MB, free: 14.4 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004336/0.4313, allocations: 2.313 MB / 493.5 MB, free: 12.02 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002968/0.4343, allocations: 1.383 MB / 494.9 MB, free: 10.63 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001629/0.4345, allocations: 42.28 kB / 494.9 MB, free: 10.59 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002217/0.4367, allocations: 1.132 MB / 496.1 MB, free: 9.418 MB / 414.1 MB Notification: Performance of pre-optimization done (n=246): time 5.39e-06/0.4367, allocations: 0 / 496.1 MB, free: 9.418 MB / 414.1 MB Notification: Performance of matching and sorting (n=371): time 0.06775/0.5045, allocations: 22.85 MB / 0.5067 GB, free: 2.266 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03178/0.5363, allocations: 13.74 MB / 0.5202 GB, free: 4.148 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02036/0.5567, allocations: 15.03 MB / 0.5348 GB, free: 5.113 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005613/0.5573, allocations: 85.7 kB / 0.5349 GB, free: 5.023 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003974/0.5613, allocations: 3.794 MB / 0.5386 GB, free: 1.223 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.2352/0.7965, allocations: 1.28 MB / 0.5399 GB, free: 120.7 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002166/0.7987, allocations: 0.5199 MB / 0.5404 GB, free: 120.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.342e-05/0.7988, allocations: 306.1 kB / 0.5407 GB, free: 120.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004362/0.8032, allocations: 1.229 MB / 0.5419 GB, free: 120.4 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003957/0.8072, allocations: 1.609 MB / 0.5434 GB, free: 120.1 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007379/0.8146, allocations: 2.968 MB / 0.5463 GB, free: 119.9 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.912e-05/0.8146, allocations: 0 / 0.5463 GB, free: 119.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.01636/0.831, allocations: 5.247 MB / 0.5515 GB, free: 118.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.678e-05/0.8311, allocations: 9.672 kB / 0.5515 GB, free: 118.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.709e-05/0.8311, allocations: 7.625 kB / 0.5515 GB, free: 118.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007997/0.8391, allocations: 1.407 MB / 0.5529 GB, free: 118.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00319/0.8424, allocations: 0.5276 MB / 0.5534 GB, free: 118.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02565/0.868, allocations: 24.05 MB / 0.5769 GB, free: 95.36 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00424/0.8723, allocations: 119.6 kB / 0.577 GB, free: 95.27 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006735/0.873, allocations: 110 kB / 0.5771 GB, free: 95.16 MB / 462.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.003767/0.8768, allocations: 2.201 MB / 0.5792 GB, free: 92.96 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001433/0.8783, allocations: 0.8791 MB / 0.5801 GB, free: 92.44 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01047/0.8887, allocations: 5.195 MB / 0.5852 GB, free: 87.2 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.769e-05/0.8888, allocations: 39.98 kB / 0.5852 GB, free: 87.16 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.731e-05/0.8888, allocations: 4 kB / 0.5852 GB, free: 87.16 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.695e-05/0.8889, allocations: 19.94 kB / 0.5852 GB, free: 87.14 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01707/0.906, allocations: 11.09 MB / 0.5961 GB, free: 75.99 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.215e-05/0.906, allocations: 4 kB / 0.5961 GB, free: 75.98 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002257/0.9083, allocations: 451.4 kB / 0.5965 GB, free: 75.54 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00497/0.9133, allocations: 1.342 MB / 0.5978 GB, free: 74.17 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003864/0.9137, allocations: 75.92 kB / 0.5979 GB, free: 74.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01985/0.9335, allocations: 21.94 MB / 0.6193 GB, free: 50.91 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02169/0.9552, allocations: 12.03 MB / 0.631 GB, free: 38.61 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01227/0.9676, allocations: 6.946 MB / 0.6378 GB, free: 31.57 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002155/0.9698, allocations: 0.809 MB / 0.6386 GB, free: 30.73 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008918/0.9707, allocations: 67.94 kB / 0.6387 GB, free: 30.67 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002131/0.9728, allocations: 99.95 kB / 0.6388 GB, free: 30.57 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007604/0.9736, allocations: 267.4 kB / 0.639 GB, free: 30.31 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001898/0.9738, allocations: 95.97 kB / 0.6391 GB, free: 30.21 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.009776/0.9836, allocations: 11.22 MB / 0.6501 GB, free: 19.01 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.9836, allocations: 4 kB / 0.6501 GB, free: 19.01 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004392/0.988, allocations: 1.097 MB / 0.6512 GB, free: 17.91 MB / 462.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.01319/1.001, allocations: 7.927 MB / 0.6589 GB, free: 10.04 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006921/1.008, allocations: 4.766 MB / 0.6636 GB, free: 5.148 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.209e-05/1.008, allocations: 0 / 0.6636 GB, free: 5.148 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0044/1.013, allocations: 3.27 MB / 0.6668 GB, free: 1.766 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003368/1.016, allocations: 0.5797 MB / 0.6673 GB, free: 1.184 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.106/1.122, allocations: 56.39 MB / 0.7224 GB, free: 8.391 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005224/1.127, allocations: 4.054 MB / 0.7263 GB, free: 4.285 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00195/1.129, allocations: 317.5 kB / 0.7267 GB, free: 3.969 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004095/1.133, allocations: 3.28 MB / 0.7299 GB, free: 0.6875 MB / 0.5137 GB Notification: Performance of SimCode: time 1.373e-06/1.133, allocations: 7.938 kB / 0.7299 GB, free: 0.6797 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.532/1.665, allocations: 144.4 MB / 0.8709 GB, free: 76.76 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 90.09/91.76, allocations: 13.84 kB / 0.8709 GB, free: 76.75 MB / 0.5294 GB (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)