Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_4_0_0_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.001246/0.001246, allocations: 113.3 kB / 17.07 MB, free: 5.969 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.001273/0.001273, allocations: 198.9 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.303/1.303, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 43.94 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2949/0.2961, allocations: 49.44 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.0124/0.3085, allocations: 11.1 MB / 411.3 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007844/0.3164, allocations: 3.639 MB / 415 MB, free: 10.03 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002276/0.3187, allocations: 39.88 kB / 415 MB, free: 9.988 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008345/0.3272, allocations: 8.136 MB / 423.1 MB, free: 1.836 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007433/0.3346, allocations: 4.628 MB / 427.8 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002765/0.3374, allocations: 0.9439 MB / 428.7 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008342/0.3458, allocations: 5.314 MB / 434 MB, free: 6.922 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002/0.3478, allocations: 0.8843 MB / 434.9 MB, free: 6.004 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005243/0.3531, allocations: 2.864 MB / 437.8 MB, free: 3.133 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007493/0.3606, allocations: 5.123 MB / 442.9 MB, free: 13.99 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001619/0.3623, allocations: 356 kB / 443.2 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001976/0.3643, allocations: 392 kB / 443.6 MB, free: 13.26 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002228/0.3665, allocations: 1.869 MB / 445.5 MB, free: 11.38 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004607/0.3711, allocations: 2.784 MB / 448.3 MB, free: 8.574 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007536/0.3787, allocations: 7.247 MB / 455.5 MB, free: 1.301 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.3787, allocations: 0 / 455.5 MB, free: 1.301 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.3787, allocations: 0 / 455.5 MB, free: 1.301 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001512/0.3789, allocations: 0 / 455.5 MB, free: 1.301 MB / 366.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.01122/0.3901, allocations: 7.643 MB / 463.2 MB, free: 9.551 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.09e-05/0.3902, allocations: 12.03 kB / 463.2 MB, free: 9.539 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003633/0.3906, allocations: 291.6 kB / 463.5 MB, free: 9.242 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001032/0.3916, allocations: 0.8454 MB / 464.3 MB, free: 8.387 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00452/0.3961, allocations: 3.183 MB / 467.5 MB, free: 5.129 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000132/0.3963, allocations: 156.5 kB / 467.6 MB, free: 4.973 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003425/0.3966, allocations: 203.9 kB / 467.8 MB, free: 4.773 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004123/0.4008, allocations: 2.112 MB / 470 MB, free: 2.594 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.934e-05/0.4008, allocations: 3.906 kB / 470 MB, free: 2.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001855/0.401, allocations: 84 kB / 470 MB, free: 2.508 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.067e-05/0.4011, allocations: 51.98 kB / 470.1 MB, free: 2.457 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003914/0.405, allocations: 1.895 MB / 472 MB, free: 0.5586 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01543/0.4204, allocations: 8.891 MB / 480.9 MB, free: 7.461 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003853/0.4243, allocations: 2.325 MB / 483.2 MB, free: 5.07 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002902/0.4272, allocations: 1.42 MB / 484.6 MB, free: 3.637 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001484/0.4274, allocations: 46.2 kB / 484.7 MB, free: 3.594 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002205/0.4296, allocations: 1.156 MB / 485.8 MB, free: 2.398 MB / 398.1 MB Notification: Performance of pre-optimization done (n=242): time 5.891e-06/0.4297, allocations: 0 / 485.8 MB, free: 2.398 MB / 398.1 MB Notification: Performance of matching and sorting (n=367): time 0.07189/0.5016, allocations: 22.82 MB / 0.4967 GB, free: 11.23 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02958/0.5312, allocations: 13.6 MB / 0.51 GB, free: 13.25 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01967/0.5509, allocations: 14.9 MB / 0.5246 GB, free: 14.41 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006793/0.5516, allocations: 81.7 kB / 0.5246 GB, free: 14.32 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003652/0.5553, allocations: 3.725 MB / 0.5283 GB, free: 10.59 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001415/0.5567, allocations: 1.217 MB / 0.5295 GB, free: 9.355 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001462/0.5582, allocations: 0.5117 MB / 0.53 GB, free: 8.836 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.839e-05/0.5583, allocations: 309.1 kB / 0.5302 GB, free: 8.531 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002747/0.561, allocations: 1.256 MB / 0.5315 GB, free: 7.273 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00291/0.564, allocations: 1.622 MB / 0.5331 GB, free: 5.57 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005516/0.5695, allocations: 2.996 MB / 0.536 GB, free: 2.504 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.019e-05/0.5695, allocations: 0 / 0.536 GB, free: 2.504 MB / 462.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.2454/0.8149, allocations: 5.191 MB / 0.5411 GB, free: 126.8 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.012e-05/0.815, allocations: 10.12 kB / 0.5411 GB, free: 126.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.772e-05/0.815, allocations: 5.25 kB / 0.5411 GB, free: 126.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005134/0.8201, allocations: 1.39 MB / 0.5424 GB, free: 126.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002763/0.8229, allocations: 0.5403 MB / 0.543 GB, free: 126.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0237/0.8466, allocations: 23.96 MB / 0.5664 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003197/0.8499, allocations: 134.8 kB / 0.5665 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000289/0.8502, allocations: 112.6 kB / 0.5666 GB, free: 110.1 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 (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.002793/0.853, allocations: 2.182 MB / 0.5687 GB, free: 108.4 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007795/0.8538, allocations: 0.82 MB / 0.5695 GB, free: 108.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009414/0.8632, allocations: 5.219 MB / 0.5746 GB, free: 102.8 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.247e-05/0.8632, allocations: 36 kB / 0.5747 GB, free: 102.8 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-05/0.8632, allocations: 4 kB / 0.5747 GB, free: 102.8 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.672e-05/0.8633, allocations: 19.94 kB / 0.5747 GB, free: 102.8 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01742/0.8807, allocations: 11.05 MB / 0.5855 GB, free: 91.72 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.269e-05/0.8807, allocations: 3.938 kB / 0.5855 GB, free: 91.72 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002179/0.8829, allocations: 463.5 kB / 0.5859 GB, free: 91.27 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00483/0.8878, allocations: 1.33 MB / 0.5872 GB, free: 89.91 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002375/0.888, allocations: 79.91 kB / 0.5873 GB, free: 89.83 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02008/0.9081, allocations: 21.86 MB / 0.6086 GB, free: 66.99 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02156/0.9297, allocations: 11.92 MB / 0.6203 GB, free: 54.82 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01236/0.9421, allocations: 6.945 MB / 0.6271 GB, free: 47.78 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001857/0.944, allocations: 0.7443 MB / 0.6278 GB, free: 47 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007199/0.9447, allocations: 68 kB / 0.6279 GB, free: 46.94 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001982/0.9467, allocations: 115.9 kB / 0.628 GB, free: 46.82 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006875/0.9474, allocations: 267.3 kB / 0.6282 GB, free: 46.56 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000182/0.9476, allocations: 98.88 kB / 0.6283 GB, free: 46.46 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00952/0.9571, allocations: 11.12 MB / 0.6392 GB, free: 35.39 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.9572, allocations: 4 kB / 0.6392 GB, free: 35.39 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004109/0.9613, allocations: 1.081 MB / 0.6402 GB, free: 34.31 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 (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.01296/0.9743, allocations: 7.928 MB / 0.648 GB, free: 26.45 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00716/0.9815, allocations: 4.818 MB / 0.6527 GB, free: 21.52 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.713e-06/0.9815, allocations: 3.938 kB / 0.6527 GB, free: 21.51 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004147/0.9856, allocations: 3.288 MB / 0.6559 GB, free: 18.11 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002928/0.9886, allocations: 0.5433 MB / 0.6564 GB, free: 17.58 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.101/1.09, allocations: 55.6 MB / 0.7107 GB, free: 9.586 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006926/1.097, allocations: 4.014 MB / 0.7146 GB, free: 5.523 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002235/1.099, allocations: 300.9 kB / 0.7149 GB, free: 5.227 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0041/1.103, allocations: 3.221 MB / 0.7181 GB, free: 2.004 MB / 0.4981 GB Notification: Performance of SimCode: time 2.384e-06/1.103, allocations: 0 / 0.7181 GB, free: 2.004 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5266/1.63, allocations: 144.4 MB / 0.8591 GB, free: 68.88 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 89.28/90.9, allocations: 7.922 kB / 0.8591 GB, free: 68.88 MB / 0.5137 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1)