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.001796/0.001796, allocations: 102.4 kB / 16.5 MB, free: 6.641 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.002339/0.002339, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.348/1.348, allocations: 222.9 MB / 241.1 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009391/0.0009392, allocations: 46.48 kB / 300.1 MB, free: 6.227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0948/0.09576, allocations: 49.45 MB / 349.5 MB, free: 4.77 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01002/0.1058, allocations: 10.99 MB / 360.5 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006745/0.1126, allocations: 3.596 MB / 364.1 MB, free: 6.117 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002658/0.1153, allocations: 39.88 kB / 364.2 MB, free: 6.078 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2054/0.3207, allocations: 8.125 MB / 372.3 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007035/0.3279, allocations: 4.556 MB / 376.8 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002212/0.3301, allocations: 0.8503 MB / 377.7 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007724/0.3379, allocations: 5.078 MB / 382.8 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001427/0.3393, allocations: 0.7634 MB / 383.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004949/0.3443, allocations: 2.594 MB / 386.1 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005545/0.3498, allocations: 4.951 MB / 391.1 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007527/0.3506, allocations: 169.8 kB / 391.2 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009353/0.3516, allocations: 209.9 kB / 391.4 MB, free: 9.441 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009198/0.3525, allocations: 1.769 MB / 393.2 MB, free: 7.664 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001634/0.3542, allocations: 2.611 MB / 395.8 MB, free: 5.039 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003689/0.3579, allocations: 6.938 MB / 402.8 MB, free: 14.32 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.3579, allocations: 0 / 402.8 MB, free: 14.32 MB / 318.1 MB Notification: Performance of FrontEnd: time 8.32e-07/0.3579, allocations: 0 / 402.8 MB, free: 14.32 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000106/0.358, allocations: 0 / 402.8 MB, free: 14.32 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.0113/0.3693, allocations: 7.645 MB / 410.4 MB, free: 6.582 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/0.3694, allocations: 8.031 kB / 410.4 MB, free: 6.574 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003349/0.3697, allocations: 287.6 kB / 410.7 MB, free: 6.281 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009922/0.3707, allocations: 0.8532 MB / 411.5 MB, free: 5.418 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003749/0.3745, allocations: 3.157 MB / 414.7 MB, free: 2.375 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001208/0.3746, allocations: 156.9 kB / 414.9 MB, free: 2.219 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002703/0.3749, allocations: 203.9 kB / 415.1 MB, free: 2.02 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003798/0.3787, allocations: 2.115 MB / 417.2 MB, free: 15.84 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.324e-05/0.3787, allocations: 0 / 417.2 MB, free: 15.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001794/0.3789, allocations: 95.92 kB / 417.3 MB, free: 15.75 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.406e-05/0.379, allocations: 48 kB / 417.3 MB, free: 15.7 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003824/0.3828, allocations: 1.895 MB / 419.2 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01406/0.3969, allocations: 8.958 MB / 428.2 MB, free: 4.719 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003971/0.4009, allocations: 2.31 MB / 430.5 MB, free: 2.34 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002543/0.4034, allocations: 1.388 MB / 431.9 MB, free: 0.957 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001357/0.4036, allocations: 48.89 kB / 431.9 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002093/0.4057, allocations: 1.16 MB / 433.1 MB, free: 15.72 MB / 350.1 MB Notification: Performance of pre-optimization done (n=242): time 4.188e-06/0.4057, allocations: 0 / 433.1 MB, free: 15.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=367): time 0.06506/0.4708, allocations: 22.77 MB / 455.8 MB, free: 8.668 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02858/0.4994, allocations: 13.03 MB / 468.9 MB, free: 11.3 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.015/0.5144, allocations: 14.92 MB / 483.8 MB, free: 12.51 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005446/0.515, allocations: 85.7 kB / 483.9 MB, free: 12.42 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003188/0.5182, allocations: 3.724 MB / 487.6 MB, free: 8.688 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001256/0.5195, allocations: 1.21 MB / 488.8 MB, free: 7.488 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008957/0.5204, allocations: 0.5117 MB / 489.3 MB, free: 6.969 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 7.783e-05/0.5205, allocations: 309 kB / 489.6 MB, free: 6.664 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002444/0.5229, allocations: 1.256 MB / 490.9 MB, free: 5.406 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002666/0.5256, allocations: 1.618 MB / 492.5 MB, free: 3.707 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005119/0.5307, allocations: 2.996 MB / 495.5 MB, free: 0.6445 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-06/0.5307, allocations: 4 kB / 495.5 MB, free: 0.6406 MB / 398.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01132/0.5421, allocations: 5.204 MB / 0.489 GB, free: 11.39 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.597e-05/0.5421, allocations: 8 kB / 0.489 GB, free: 11.38 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.574e-05/0.5421, allocations: 4 kB / 0.489 GB, free: 11.38 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005532/0.5477, allocations: 1.385 MB / 0.4903 GB, free: 9.965 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002616/0.5503, allocations: 0.5422 MB / 0.4909 GB, free: 9.422 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2037/0.7541, allocations: 21.91 MB / 0.5123 GB, free: 2.328 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003082/0.7572, allocations: 143.8 kB / 0.5124 GB, free: 2.188 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003008/0.7575, allocations: 112 kB / 0.5125 GB, free: 2.078 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.003008/0.7605, allocations: 2.184 MB / 0.5146 GB, free: 15.89 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008672/0.7614, allocations: 0.8175 MB / 0.5154 GB, free: 15.06 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01073/0.7721, allocations: 5.218 MB / 0.5205 GB, free: 9.801 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.677e-05/0.7722, allocations: 36 kB / 0.5206 GB, free: 9.766 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.356e-05/0.7722, allocations: 4 kB / 0.5206 GB, free: 9.762 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.92e-05/0.7722, allocations: 23.92 kB / 0.5206 GB, free: 9.738 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1774/0.9496, allocations: 11.08 MB / 0.5314 GB, free: 143.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.439e-05/0.9497, allocations: 1.094 kB / 0.5314 GB, free: 143.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002492/0.9522, allocations: 464.4 kB / 0.5319 GB, free: 143.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005384/0.9576, allocations: 1.334 MB / 0.5332 GB, free: 143.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003253/0.9579, allocations: 73.56 kB / 0.5332 GB, free: 143.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02038/0.9783, allocations: 20 MB / 0.5528 GB, free: 129.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02203/1, allocations: 11.42 MB / 0.5639 GB, free: 122.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01191/1.012, allocations: 6.939 MB / 0.5707 GB, free: 120.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001018/1.013, allocations: 0.7512 MB / 0.5714 GB, free: 119.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004919/1.014, allocations: 67.03 kB / 0.5715 GB, free: 119.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001874/1.016, allocations: 109.5 kB / 0.5716 GB, free: 119.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000666/1.016, allocations: 266.8 kB / 0.5718 GB, free: 119.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001734/1.017, allocations: 100.2 kB / 0.5719 GB, free: 119.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.008234/1.025, allocations: 11.13 MB / 0.5828 GB, free: 113.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.91e-07/1.025, allocations: 2.688 kB / 0.5828 GB, free: 113.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003342/1.028, allocations: 1.071 MB / 0.5838 GB, free: 112.2 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.01231/1.041, allocations: 7.946 MB / 0.5916 GB, free: 104.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006489/1.047, allocations: 4.796 MB / 0.5963 GB, free: 99.55 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/1.047, allocations: 0 / 0.5963 GB, free: 99.55 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004085/1.051, allocations: 3.275 MB / 0.5995 GB, free: 96.18 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002798/1.054, allocations: 0.5239 MB / 0.6 GB, free: 95.66 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0843/1.138, allocations: 89.94 MB / 0.6878 GB, free: 15.55 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004067/1.142, allocations: 4.012 MB / 0.6917 GB, free: 11.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00214/1.145, allocations: 308.8 kB / 0.692 GB, free: 11.19 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003354/1.148, allocations: 3.229 MB / 0.6952 GB, free: 7.961 MB / 462.1 MB Notification: Performance of SimCode: time 1.032e-06/1.148, allocations: 0 / 0.6952 GB, free: 7.961 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.556/2.704, allocations: 136.8 MB / 0.8287 GB, free: 45.15 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002358/2.704, allocations: 305 kB / 0.829 GB, free: 44.77 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.29/9.994, allocations: 0 / 0.829 GB, free: 44.77 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)