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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001297/0.001297, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.432/1.432, allocations: 221.3 MB / 235.5 MB, free: 2.977 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000839/0.0008389, allocations: 80.72 kB / 286.5 MB, free: 248 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.282e-05/2.292e-05, allocations: 4 kB / 343.9 MB, free: 4.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1049, allocations: 50.42 MB / 394.3 MB, free: 1.773 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3932/0.4981, allocations: 95.62 MB / 490 MB, free: 7.848 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002889/0.4985, allocations: 87.95 kB / 490.1 MB, free: 7.762 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4434/0.9418, allocations: 79.46 MB / 0.5562 GB, free: 100.7 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.425e-06/0.9419, allocations: 0.6562 kB / 0.5562 GB, free: 100.7 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0008554/0.9427, allocations: 111.5 kB / 0.5563 GB, free: 100.7 MB / 426.7 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.0158/0.9586, allocations: 5.54 MB / 0.5617 GB, free: 98.01 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/0.9586, allocations: 9.5 kB / 0.5617 GB, free: 98.01 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0012/0.9598, allocations: 298.5 kB / 0.562 GB, free: 97.96 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004385/0.9642, allocations: 0.8611 MB / 0.5628 GB, free: 97.49 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01504/0.9793, allocations: 3.582 MB / 0.5663 GB, free: 96.36 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001954/0.9795, allocations: 161.7 kB / 0.5665 GB, free: 96.34 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006712/0.9802, allocations: 210.4 kB / 0.5667 GB, free: 96.34 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004779/0.985, allocations: 2.016 MB / 0.5686 GB, free: 96.17 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.828e-05/0.9851, allocations: 3.219 kB / 0.5686 GB, free: 96.17 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002037/0.9853, allocations: 82.41 kB / 0.5687 GB, free: 96.17 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.971e-05/0.9854, allocations: 50 kB / 0.5688 GB, free: 96.17 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004202/0.9896, allocations: 1.782 MB / 0.5705 GB, free: 96.14 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02559/1.015, allocations: 10.14 MB / 0.5804 GB, free: 94.09 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003807/1.019, allocations: 2.293 MB / 0.5827 GB, free: 92.89 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002132/1.021, allocations: 1.311 MB / 0.5839 GB, free: 92.38 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001368/1.021, allocations: 39.89 kB / 0.584 GB, free: 92.37 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001664/1.023, allocations: 1.119 MB / 0.5851 GB, free: 91.85 MB / 426.7 MB Notification: Performance of pre-optimization done (n=246): time 5.13e-06/1.023, allocations: 0 / 0.5851 GB, free: 91.85 MB / 426.7 MB Notification: Performance of matching and sorting (n=382): time 0.05356/1.077, allocations: 19.11 MB / 0.6037 GB, free: 83.34 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.06324/1.14, allocations: 30.74 MB / 0.6338 GB, free: 60.02 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1324/1.272, allocations: 13.35 MB / 0.6468 GB, free: 48.08 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005898/1.273, allocations: 95.02 kB / 0.6469 GB, free: 47.98 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004707/1.278, allocations: 3.727 MB / 0.6505 GB, free: 44.54 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001359/1.279, allocations: 1.258 MB / 0.6517 GB, free: 43.4 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005958/1.28, allocations: 75.94 kB / 0.6518 GB, free: 43.32 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000199/1.28, allocations: 437.4 kB / 0.6522 GB, free: 42.93 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002704/1.283, allocations: 1.274 MB / 0.6535 GB, free: 41.68 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00336/1.286, allocations: 1.618 MB / 0.6551 GB, free: 40.05 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00298/1.289, allocations: 1.475 MB / 0.6565 GB, free: 38.7 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.605e-05/1.289, allocations: 0 / 0.6565 GB, free: 38.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=445) (initialization): time 0.01454/1.304, allocations: 5.292 MB / 0.6617 GB, free: 33.82 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.435e-05/1.304, allocations: 9.094 kB / 0.6617 GB, free: 33.81 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.264e-05/1.304, allocations: 4 kB / 0.6617 GB, free: 33.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005472/1.309, allocations: 1.43 MB / 0.6631 GB, free: 32.62 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003027/1.312, allocations: 0.5761 MB / 0.6636 GB, free: 32.13 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02406/1.336, allocations: 22.25 MB / 0.6854 GB, free: 10.08 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005946/1.342, allocations: 204.2 kB / 0.6856 GB, free: 9.914 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008477/1.343, allocations: 118.5 kB / 0.6857 GB, free: 9.812 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEvent,$PRE.comparisonWithFEA.nextTimeEventScaled,comparisonWithFEA.nextTimeEventScaled,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (318): * Single equations (assignments): 307 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 2 {2 43,3 51} Notification: Performance of prepare postOptimizeDAE: time 0.001071/1.344, allocations: 284 kB / 0.6859 GB, free: 9.531 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005369/1.35, allocations: 0.8527 MB / 0.6868 GB, free: 8.668 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01397/1.364, allocations: 5.478 MB / 0.6921 GB, free: 3.641 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004787/1.368, allocations: 2.381 MB / 0.6945 GB, free: 1.246 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.972e-05/1.369, allocations: 7.953 kB / 0.6945 GB, free: 1.238 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.7e-05/1.369, allocations: 19.94 kB / 0.6945 GB, free: 1.219 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04193/1.411, allocations: 14.1 MB / 0.7083 GB, free: 3.062 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.523e-05/1.411, allocations: 9.641 kB / 0.7083 GB, free: 3.055 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003024/1.414, allocations: 0.4956 MB / 0.7087 GB, free: 2.559 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006285/1.42, allocations: 1.445 MB / 0.7102 GB, free: 1.09 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007601/1.421, allocations: 83.94 kB / 0.7102 GB, free: 1.008 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3584/1.779, allocations: 20.33 MB / 0.7301 GB, free: 93.49 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.05523/1.834, allocations: 27.22 MB / 0.7567 GB, free: 83.1 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01733/1.852, allocations: 7.859 MB / 0.7643 GB, free: 79.25 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005724/1.858, allocations: 1.597 MB / 0.7659 GB, free: 78.53 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003311/1.861, allocations: 85.14 kB / 0.766 GB, free: 78.48 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005209/1.866, allocations: 176.1 kB / 0.7662 GB, free: 78.43 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001196/1.867, allocations: 285 kB / 0.7664 GB, free: 78.39 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002959/1.868, allocations: 108.8 kB / 0.7665 GB, free: 78.37 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.02066/1.888, allocations: 10.76 MB / 0.777 GB, free: 74.36 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.51e-07/1.888, allocations: 0 / 0.777 GB, free: 74.36 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.009707/1.898, allocations: 1.764 MB / 0.7788 GB, free: 74.21 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 ($STATESET2.x[2],$STATESET2.x[1],advancedSolenoid.x,advancedSolenoid.armature.stopper_xMin.v_rel,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.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (265): * Single equations (assignments): 254 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 6,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {4 53,3 43} Notification: Performance of Backend phase and start with SimCode phase: time 0.0191/1.917, allocations: 9.126 MB / 0.7877 GB, free: 69.32 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007284/1.925, allocations: 4.871 MB / 0.7924 GB, free: 64.56 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.237e-06/1.925, allocations: 0 / 0.7924 GB, free: 64.56 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004959/1.93, allocations: 3.388 MB / 0.7957 GB, free: 61.26 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006273/1.936, allocations: 0.4979 MB / 0.7962 GB, free: 60.82 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04185/1.978, allocations: 19.2 MB / 0.815 GB, free: 43.94 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004398/1.982, allocations: 4.207 MB / 0.8191 GB, free: 40.94 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.005299/1.988, allocations: 0.8391 MB / 0.8199 GB, free: 40.21 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008299/1.996, allocations: 3.439 MB / 0.8233 GB, free: 37.02 MB / 442.7 MB Notification: Performance of SimCode: time 1.363e-06/1.996, allocations: 0 / 0.8233 GB, free: 37.02 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7268/2.723, allocations: 164.6 MB / 0.984 GB, free: 51.05 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00019/2.723, allocations: 248.1 kB / 0.9842 GB, free: 50.71 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.88/16.6, allocations: 0 / 0.9842 GB, free: 50.71 MB / 458.7 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/linux/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)