Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_3_2_3_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 4.0.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 104.6 kB / 17.16 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 190 kB / 18.07 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.454/1.454, allocations: 205.1 MB / 223.9 MB, free: 12.47 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001137/0.001137, allocations: 51.92 kB / 280.1 MB, free: 3.465 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.091/0.09215, allocations: 46.62 MB / 326.7 MB, free: 4.785 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01018/0.1024, allocations: 10.88 MB / 337.6 MB, free: 9.852 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006137/0.1085, allocations: 3.496 MB / 341.1 MB, free: 6.34 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001614/0.1102, allocations: 43.88 kB / 341.1 MB, free: 6.297 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00634/0.1166, allocations: 8.125 MB / 349.2 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005531/0.1221, allocations: 4.563 MB / 353.8 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002253/0.1244, allocations: 0.8351 MB / 354.6 MB, free: 8.746 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006292/0.1307, allocations: 5.093 MB / 359.7 MB, free: 3.641 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001321/0.1321, allocations: 0.7727 MB / 360.5 MB, free: 2.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004342/0.1364, allocations: 2.587 MB / 363.1 MB, free: 252 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006057/0.1425, allocations: 4.951 MB / 368 MB, free: 11.27 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007716/0.1433, allocations: 172 kB / 368.2 MB, free: 11.11 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009093/0.1443, allocations: 196 kB / 368.4 MB, free: 10.91 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001303/0.1456, allocations: 1.779 MB / 370.2 MB, free: 9.121 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002545/0.1481, allocations: 2.608 MB / 372.8 MB, free: 6.492 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1807/0.3288, allocations: 6.929 MB / 379.7 MB, free: 31.56 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.131e-05/0.3288, allocations: 1.719 kB / 379.7 MB, free: 31.56 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.797e-06/0.3289, allocations: 0 / 379.7 MB, free: 31.56 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002837/0.3292, allocations: 3.469 kB / 379.7 MB, free: 31.56 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: 528 * Number of variables: 528 Notification: Performance of Generate backend data structure: time 0.01946/0.3486, allocations: 7.65 MB / 387.4 MB, free: 27.6 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.447e-05/0.3487, allocations: 8.781 kB / 387.4 MB, free: 27.6 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006994/0.3494, allocations: 290.8 kB / 387.7 MB, free: 27.55 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002096/0.3515, allocations: 0.8447 MB / 388.5 MB, free: 27.09 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005902/0.3574, allocations: 3.155 MB / 391.7 MB, free: 25.56 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001727/0.3577, allocations: 163.3 kB / 391.8 MB, free: 25.55 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004919/0.3582, allocations: 202.1 kB / 392 MB, free: 25.55 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004281/0.3624, allocations: 2.113 MB / 394.1 MB, free: 25.37 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.813e-05/0.3625, allocations: 1.156 kB / 394.1 MB, free: 25.37 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000174/0.3627, allocations: 86.98 kB / 394.2 MB, free: 25.37 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.668e-05/0.3627, allocations: 50.44 kB / 394.3 MB, free: 25.37 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003689/0.3664, allocations: 1.896 MB / 396.2 MB, free: 25.13 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01347/0.3799, allocations: 8.944 MB / 405.1 MB, free: 20.51 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003121/0.3831, allocations: 2.333 MB / 407.4 MB, free: 19.14 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002228/0.3853, allocations: 1.379 MB / 408.8 MB, free: 18.5 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000129/0.3855, allocations: 47.41 kB / 408.9 MB, free: 18.48 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001823/0.3873, allocations: 1.156 MB / 410 MB, free: 17.75 MB / 318.1 MB Notification: Performance of pre-optimization done (n=242): time 3.987e-06/0.3873, allocations: 0 / 410 MB, free: 17.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=367): time 0.06083/0.4482, allocations: 22.79 MB / 432.8 MB, free: 12.61 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02903/0.4772, allocations: 13.03 MB / 445.8 MB, free: 15.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01549/0.4928, allocations: 14.9 MB / 460.7 MB, free: 500 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006833/0.4935, allocations: 85.7 kB / 460.8 MB, free: 408 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003654/0.4972, allocations: 3.729 MB / 464.6 MB, free: 12.66 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001619/0.4988, allocations: 1.215 MB / 465.8 MB, free: 11.46 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001085/0.4999, allocations: 0.5195 MB / 466.3 MB, free: 10.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.5, allocations: 301.1 kB / 466.6 MB, free: 10.64 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002456/0.5025, allocations: 1.248 MB / 467.8 MB, free: 9.387 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002603/0.5051, allocations: 1.626 MB / 469.5 MB, free: 7.684 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005266/0.5104, allocations: 2.994 MB / 472.5 MB, free: 4.645 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.908e-06/0.5104, allocations: 4 kB / 472.5 MB, free: 4.641 MB / 366.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01206/0.5225, allocations: 5.205 MB / 477.7 MB, free: 15.48 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.866e-05/0.5225, allocations: 4 kB / 477.7 MB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.332e-05/0.5226, allocations: 8.094 kB / 477.7 MB, free: 15.47 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005467/0.5281, allocations: 1.388 MB / 479.1 MB, free: 14.06 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002548/0.5306, allocations: 0.5474 MB / 479.6 MB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02636/0.557, allocations: 21.91 MB / 0.4898 GB, free: 6.531 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003359/0.5604, allocations: 135.8 kB / 0.4899 GB, free: 6.398 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003201/0.5607, allocations: 117.7 kB / 0.49 GB, free: 6.285 MB / 398.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 (309): * Single equations (assignments): 300 * 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,4,100.0%), (1,3,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.003093/0.5638, allocations: 2.173 MB / 0.4921 GB, free: 4.133 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001187/0.565, allocations: 0.8175 MB / 0.4929 GB, free: 3.305 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01078/0.5758, allocations: 5.229 MB / 0.498 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.142e-05/0.5759, allocations: 32 kB / 0.4981 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.594e-05/0.5759, allocations: 8 kB / 0.4981 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.988e-05/0.5759, allocations: 19.92 kB / 0.4981 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02084/0.5968, allocations: 11.07 MB / 0.5089 GB, free: 2.988 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-05/0.5968, allocations: 9.359 kB / 0.5089 GB, free: 2.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002344/0.5992, allocations: 460.1 kB / 0.5093 GB, free: 2.555 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005231/0.6044, allocations: 1.336 MB / 0.5107 GB, free: 1.195 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00025/0.6047, allocations: 75.97 kB / 0.5107 GB, free: 1.121 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.213/0.8177, allocations: 20 MB / 0.5303 GB, free: 142.3 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02572/0.8434, allocations: 11.41 MB / 0.5414 GB, free: 138.4 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01369/0.8572, allocations: 6.945 MB / 0.5482 GB, free: 135.6 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001574/0.8588, allocations: 0.7487 MB / 0.5489 GB, free: 135.5 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006778/0.8595, allocations: 63.34 kB / 0.549 GB, free: 135.4 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002081/0.8616, allocations: 115.3 kB / 0.5491 GB, free: 135.4 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000728/0.8623, allocations: 262.5 kB / 0.5493 GB, free: 135.4 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001854/0.8625, allocations: 95.81 kB / 0.5494 GB, free: 135.3 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.009107/0.8716, allocations: 11.13 MB / 0.5603 GB, free: 129.4 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.262e-06/0.8717, allocations: 0 / 0.5603 GB, free: 129.4 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004331/0.876, allocations: 1.078 MB / 0.5614 GB, free: 128.4 MB / 430.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 (253): * Single equations (assignments): 242 * 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.01433/0.8904, allocations: 7.924 MB / 0.5691 GB, free: 121.1 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007516/0.8979, allocations: 4.799 MB / 0.5738 GB, free: 116.6 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.015e-06/0.898, allocations: 3.219 kB / 0.5738 GB, free: 116.6 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004865/0.9028, allocations: 3.274 MB / 0.577 GB, free: 113.3 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004381/0.9073, allocations: 0.5208 MB / 0.5775 GB, free: 112.8 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1115/1.019, allocations: 89.94 MB / 0.6653 GB, free: 16.77 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006027/1.025, allocations: 4.006 MB / 0.6692 GB, free: 12.71 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002653/1.028, allocations: 306.8 kB / 0.6695 GB, free: 12.41 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003529/1.031, allocations: 3.213 MB / 0.6727 GB, free: 9.203 MB / 430.1 MB Notification: Performance of SimCode: time 1.202e-06/1.031, allocations: 3.938 kB / 0.6727 GB, free: 9.199 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4467/1.478, allocations: 136.8 MB / 0.8062 GB, free: 61.9 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001919/1.478, allocations: 319.7 kB / 0.8065 GB, free: 61.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.619/8.097, allocations: 0 / 0.8065 GB, free: 61.5 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1)