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.001265/0.001265, allocations: 111.8 kB / 17.28 MB, free: 6.199 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.001147/0.001147, allocations: 189.3 kB / 18.2 MB, free: 5.281 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.944/1.944, allocations: 205.1 MB / 224.1 MB, free: 12.43 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.001331/0.001331, allocations: 44.14 kB / 280.3 MB, free: 3.391 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.1272, allocations: 46.63 MB / 326.9 MB, free: 4.688 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01277/0.14, allocations: 10.89 MB / 337.8 MB, free: 9.742 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009757/0.1498, allocations: 3.5 MB / 341.3 MB, free: 6.227 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002113/0.1521, allocations: 39.88 kB / 341.3 MB, free: 6.188 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00796/0.16, allocations: 8.044 MB / 349.4 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007806/0.1679, allocations: 4.509 MB / 353.9 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002492/0.1704, allocations: 0.8234 MB / 354.7 MB, free: 8.785 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008302/0.1787, allocations: 5.296 MB / 360 MB, free: 3.477 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001581/0.1803, allocations: 0.8865 MB / 360.9 MB, free: 2.559 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006253/0.1866, allocations: 2.864 MB / 363.7 MB, free: 15.69 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007555/0.1942, allocations: 5.303 MB / 369 MB, free: 10.37 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001133/0.1954, allocations: 356 kB / 369.4 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001195/0.1966, allocations: 388 kB / 369.8 MB, free: 9.641 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001606/0.1982, allocations: 1.947 MB / 371.7 MB, free: 7.68 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00312/0.2013, allocations: 2.795 MB / 374.5 MB, free: 4.863 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2441/0.4454, allocations: 7.139 MB / 381.6 MB, free: 35.02 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.4e-05/0.4455, allocations: 1.375 kB / 381.6 MB, free: 35.02 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.479e-06/0.4455, allocations: 0.5156 kB / 381.6 MB, free: 35.02 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003741/0.4459, allocations: 0 / 381.6 MB, free: 35.02 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.01968/0.4656, allocations: 7.647 MB / 389.3 MB, free: 31.05 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.477e-05/0.4657, allocations: 9.906 kB / 389.3 MB, free: 31.05 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004341/0.4661, allocations: 290.6 kB / 389.6 MB, free: 31 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001902/0.468, allocations: 0.8439 MB / 390.4 MB, free: 30.54 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005549/0.4736, allocations: 3.15 MB / 393.6 MB, free: 29.01 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001677/0.4738, allocations: 161.4 kB / 393.7 MB, free: 29 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003802/0.4742, allocations: 212.6 kB / 393.9 MB, free: 29 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0052/0.4794, allocations: 2.11 MB / 396.1 MB, free: 28.83 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.148e-05/0.4795, allocations: 6.281 kB / 396.1 MB, free: 28.83 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002202/0.4797, allocations: 88.2 kB / 396.1 MB, free: 28.83 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.549e-05/0.4798, allocations: 50.12 kB / 396.2 MB, free: 28.83 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00418/0.484, allocations: 1.896 MB / 398.1 MB, free: 28.24 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01744/0.5014, allocations: 8.951 MB / 407 MB, free: 22.67 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003456/0.5049, allocations: 2.322 MB / 409.4 MB, free: 21.31 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002461/0.5074, allocations: 1.391 MB / 410.8 MB, free: 20.66 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001489/0.5076, allocations: 46.98 kB / 410.8 MB, free: 20.63 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002008/0.5096, allocations: 1.159 MB / 412 MB, free: 19.44 MB / 318.1 MB Notification: Performance of pre-optimization done (n=242): time 3.887e-06/0.5096, allocations: 0 / 412 MB, free: 19.44 MB / 318.1 MB Notification: Performance of matching and sorting (n=367): time 0.06268/0.5723, allocations: 22.81 MB / 434.8 MB, free: 12.46 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02946/0.6018, allocations: 13.62 MB / 448.4 MB, free: 14.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01809/0.6199, allocations: 14.9 MB / 463.3 MB, free: 15.74 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008551/0.6208, allocations: 85.7 kB / 463.4 MB, free: 15.65 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003556/0.6244, allocations: 3.726 MB / 467.1 MB, free: 11.92 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001564/0.626, allocations: 1.211 MB / 468.3 MB, free: 10.72 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009955/0.627, allocations: 0.5234 MB / 468.8 MB, free: 10.19 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.6271, allocations: 301.1 kB / 469.1 MB, free: 9.891 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002549/0.6297, allocations: 1.252 MB / 470.4 MB, free: 8.637 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00268/0.6324, allocations: 1.626 MB / 472 MB, free: 6.934 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005069/0.6375, allocations: 2.989 MB / 475 MB, free: 3.898 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.774e-06/0.6375, allocations: 6.906 kB / 475 MB, free: 3.895 MB / 366.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01244/0.6499, allocations: 5.199 MB / 480.2 MB, free: 14.74 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.713e-05/0.65, allocations: 15.98 kB / 480.2 MB, free: 14.72 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.974e-05/0.65, allocations: 4 kB / 480.2 MB, free: 14.72 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005734/0.6558, allocations: 1.394 MB / 481.6 MB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002623/0.6584, allocations: 0.544 MB / 482.2 MB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02853/0.687, allocations: 23.98 MB / 0.4943 GB, free: 3.664 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004263/0.6913, allocations: 131.8 kB / 0.4944 GB, free: 3.535 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002921/0.6916, allocations: 116 kB / 0.4945 GB, free: 3.422 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.003349/0.6949, allocations: 2.188 MB / 0.4966 GB, free: 1.254 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001104/0.696, allocations: 0.8137 MB / 0.4974 GB, free: 440 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01109/0.7071, allocations: 5.219 MB / 0.5025 GB, free: 11.22 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.777e-05/0.7072, allocations: 36 kB / 0.5026 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.447e-05/0.7072, allocations: 4 kB / 0.5026 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.404e-05/0.7072, allocations: 27.86 kB / 0.5026 GB, free: 11.15 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01986/0.7271, allocations: 11.08 MB / 0.5134 GB, free: 116 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.219e-05/0.7271, allocations: 0 / 0.5134 GB, free: 116 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002413/0.7296, allocations: 467.7 kB / 0.5139 GB, free: 15.68 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005474/0.7351, allocations: 1.345 MB / 0.5152 GB, free: 14.31 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003485/0.7354, allocations: 71.97 kB / 0.5152 GB, free: 14.24 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2111/0.9466, allocations: 21.86 MB / 0.5366 GB, free: 143.1 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02377/0.9704, allocations: 11.94 MB / 0.5483 GB, free: 136.8 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01345/0.9839, allocations: 6.948 MB / 0.555 GB, free: 134 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001175/0.9851, allocations: 0.7537 MB / 0.5558 GB, free: 133.8 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005178/0.9856, allocations: 68.72 kB / 0.5558 GB, free: 133.8 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002008/0.9876, allocations: 118.3 kB / 0.556 GB, free: 133.7 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006145/0.9882, allocations: 263.4 kB / 0.5562 GB, free: 133.7 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001802/0.9884, allocations: 94.97 kB / 0.5563 GB, free: 133.7 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00876/0.9972, allocations: 11.12 MB / 0.5672 GB, free: 125.7 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.9972, allocations: 0 / 0.5672 GB, free: 125.7 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003745/1.001, allocations: 1.085 MB / 0.5682 GB, free: 124.7 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.01235/1.013, allocations: 7.923 MB / 0.576 GB, free: 116.8 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01044/1.024, allocations: 4.92 MB / 0.5808 GB, free: 111.8 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/1.024, allocations: 0 / 0.5808 GB, free: 111.8 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004363/1.028, allocations: 3.284 MB / 0.584 GB, free: 108.4 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005327/1.034, allocations: 0.5318 MB / 0.5845 GB, free: 107.9 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09998/1.134, allocations: 89.96 MB / 0.6723 GB, free: 11.75 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005236/1.139, allocations: 4.01 MB / 0.6763 GB, free: 7.688 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00217/1.141, allocations: 308.9 kB / 0.6766 GB, free: 7.383 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003563/1.145, allocations: 3.217 MB / 0.6797 GB, free: 4.164 MB / 430.1 MB Notification: Performance of SimCode: time 2.104e-06/1.145, allocations: 0 / 0.6797 GB, free: 4.164 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9818/2.126, allocations: 139.3 MB / 0.8157 GB, free: 27.38 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001843/2.127, allocations: 308.1 kB / 0.816 GB, free: 27 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.743/10.87, allocations: 0 / 0.816 GB, free: 27 MB / 430.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)