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.0009678/0.0009679, allocations: 91.2 kB / 16.65 MB, free: 6.598 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.001176/0.001176, allocations: 179.9 kB / 17.56 MB, free: 6.199 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.53/1.53, allocations: 223.3 MB / 241.6 MB, free: 208 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003046/0.0003045, allocations: 12 kB / 301.5 MB, free: 6.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1107, allocations: 50.41 MB / 351.9 MB, free: 3.594 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01171/0.1224, allocations: 10.42 MB / 362.4 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008414/0.1309, allocations: 3.569 MB / 365.9 MB, free: 5.543 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00322/0.1342, allocations: 35.88 kB / 366 MB, free: 5.508 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2322/0.3664, allocations: 8.124 MB / 374.1 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009246/0.3757, allocations: 4.556 MB / 378.7 MB, free: 13.01 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002884/0.3786, allocations: 0.8426 MB / 379.5 MB, free: 12.97 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01125/0.3899, allocations: 5.085 MB / 384.6 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001876/0.3918, allocations: 0.7693 MB / 385.4 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006779/0.3986, allocations: 2.541 MB / 387.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007474/0.4061, allocations: 4.875 MB / 392.8 MB, free: 8.738 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009103/0.407, allocations: 143.4 kB / 392.9 MB, free: 8.602 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001298/0.4083, allocations: 179.2 kB / 393.1 MB, free: 8.434 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001227/0.4096, allocations: 1.735 MB / 394.8 MB, free: 6.871 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00265/0.4122, allocations: 2.589 MB / 397.4 MB, free: 4.262 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006049/0.4183, allocations: 6.802 MB / 404.2 MB, free: 13.68 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.036e-05/0.4183, allocations: 0 / 404.2 MB, free: 13.68 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.108e-06/0.4184, allocations: 0 / 404.2 MB, free: 13.68 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003922/0.4188, allocations: 0 / 404.2 MB, free: 13.68 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.01457/0.4333, allocations: 6.609 MB / 410.8 MB, free: 6.984 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.143e-05/0.4334, allocations: 12.03 kB / 410.8 MB, free: 6.973 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001097/0.4345, allocations: 287.6 kB / 411.1 MB, free: 6.68 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001474/0.436, allocations: 0.8493 MB / 412 MB, free: 5.82 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00513/0.4411, allocations: 3.157 MB / 415.1 MB, free: 2.777 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001514/0.4413, allocations: 156.9 kB / 415.3 MB, free: 2.621 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003994/0.4417, allocations: 200 kB / 415.5 MB, free: 2.426 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004583/0.4463, allocations: 2.139 MB / 417.6 MB, free: 224 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.999e-05/0.4464, allocations: 15.84 kB / 417.6 MB, free: 208 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001956/0.4466, allocations: 84 kB / 417.7 MB, free: 124 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.704e-05/0.4467, allocations: 48 kB / 417.7 MB, free: 76 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004242/0.4509, allocations: 1.95 MB / 419.7 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01949/0.4704, allocations: 8.977 MB / 428.7 MB, free: 5.02 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004475/0.4749, allocations: 2.344 MB / 431 MB, free: 2.605 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002909/0.4779, allocations: 1.384 MB / 432.4 MB, free: 1.215 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001418/0.478, allocations: 52.19 kB / 432.5 MB, free: 1.168 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002337/0.4804, allocations: 1.175 MB / 433.6 MB, free: 15.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=242): time 4.047e-06/0.4804, allocations: 4 kB / 433.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=367): time 0.07858/0.559, allocations: 23.08 MB / 456.7 MB, free: 8.59 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03253/0.5916, allocations: 13.22 MB / 469.9 MB, free: 11.03 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02184/0.6134, allocations: 14.9 MB / 484.8 MB, free: 12.21 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007757/0.6143, allocations: 81.7 kB / 484.9 MB, free: 12.12 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003827/0.6181, allocations: 3.732 MB / 488.7 MB, free: 8.387 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001946/0.6201, allocations: 1.204 MB / 489.9 MB, free: 7.191 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004534/0.6205, allocations: 260.9 kB / 490.1 MB, free: 6.93 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.6207, allocations: 305.1 kB / 490.4 MB, free: 6.629 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002627/0.6233, allocations: 1.268 MB / 491.7 MB, free: 5.359 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002832/0.6261, allocations: 1.653 MB / 493.3 MB, free: 3.629 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005444/0.6316, allocations: 3.032 MB / 496.4 MB, free: 0.5312 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.396e-06/0.6316, allocations: 4 kB / 496.4 MB, free: 0.5273 MB / 398.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.0119/0.6435, allocations: 5.251 MB / 0.4899 GB, free: 11.23 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.052e-05/0.6436, allocations: 8 kB / 0.4899 GB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.227e-05/0.6436, allocations: 4 kB / 0.4899 GB, free: 11.22 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005676/0.6493, allocations: 1.399 MB / 0.4912 GB, free: 9.797 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002969/0.6523, allocations: 0.5539 MB / 0.4918 GB, free: 9.242 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03143/0.6837, allocations: 21.94 MB / 0.5132 GB, free: 2.117 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003798/0.6876, allocations: 151.9 kB / 0.5133 GB, free: 1.969 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006422/0.6883, allocations: 123.9 kB / 0.5135 GB, free: 1.848 MB / 430.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.005062/0.6933, allocations: 2.184 MB / 0.5156 GB, free: 15.65 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00185/0.6952, allocations: 0.8098 MB / 0.5164 GB, free: 14.83 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01903/0.7142, allocations: 5.276 MB / 0.5215 GB, free: 9.512 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.471e-05/0.7143, allocations: 36 kB / 0.5216 GB, free: 9.477 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.232e-05/0.7144, allocations: 4 kB / 0.5216 GB, free: 9.473 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.84e-05/0.7145, allocations: 19.94 kB / 0.5216 GB, free: 9.453 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2253/0.9398, allocations: 11.12 MB / 0.5325 GB, free: 142.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.943e-05/0.9399, allocations: 2.344 kB / 0.5325 GB, free: 142.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004119/0.944, allocations: 473.6 kB / 0.5329 GB, free: 142.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008706/0.9527, allocations: 1.342 MB / 0.5342 GB, free: 142.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006463/0.9534, allocations: 74.59 kB / 0.5343 GB, free: 142.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03492/0.9884, allocations: 20.04 MB / 0.5539 GB, free: 128.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02607/1.014, allocations: 11.59 MB / 0.5652 GB, free: 122.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01696/1.031, allocations: 7.014 MB / 0.572 GB, free: 119.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001627/1.033, allocations: 0.755 MB / 0.5728 GB, free: 118.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001223/1.034, allocations: 65.5 kB / 0.5728 GB, free: 118.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002781/1.037, allocations: 122.6 kB / 0.573 GB, free: 118.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009106/1.038, allocations: 269.6 kB / 0.5732 GB, free: 118.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003182/1.038, allocations: 97.48 kB / 0.5733 GB, free: 118.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.01299/1.051, allocations: 11.12 MB / 0.5842 GB, free: 112 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.81e-07/1.051, allocations: 3.094 kB / 0.5842 GB, free: 112 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005539/1.057, allocations: 1.079 MB / 0.5852 GB, free: 110.9 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 (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.01612/1.073, allocations: 8.008 MB / 0.593 GB, free: 103 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007719/1.081, allocations: 4.838 MB / 0.5978 GB, free: 98.06 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/1.081, allocations: 0 / 0.5978 GB, free: 98.06 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004781/1.086, allocations: 3.303 MB / 0.601 GB, free: 94.65 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006492/1.092, allocations: 0.5116 MB / 0.6015 GB, free: 94.14 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1211/1.213, allocations: 90.24 MB / 0.6896 GB, free: 13.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004536/1.218, allocations: 4.012 MB / 0.6935 GB, free: 9.645 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00213/1.22, allocations: 303.3 kB / 0.6938 GB, free: 9.348 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003993/1.224, allocations: 3.221 MB / 0.697 GB, free: 6.125 MB / 462.1 MB Notification: Performance of SimCode: time 9.62e-07/1.224, allocations: 7.828 kB / 0.697 GB, free: 6.121 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4476/1.672, allocations: 134.3 MB / 0.8281 GB, free: 44.32 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001841/1.672, allocations: 316.3 kB / 0.8284 GB, free: 43.93 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.113/9.785, allocations: 0 / 0.8284 GB, free: 43.93 MB / 462.1 MB (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)