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.001264/0.001264, allocations: 103.9 kB / 17.58 MB, free: 5.422 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.001135/0.001135, allocations: 192.2 kB / 18.51 MB, free: 4.508 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.338/1.338, allocations: 205.1 MB / 224.4 MB, free: 12.29 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.001304/0.001305, allocations: 52.14 kB / 280.8 MB, free: 3.074 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08961/0.09094, allocations: 46.63 MB / 327.4 MB, free: 4.371 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01314/0.1041, allocations: 10.97 MB / 338.4 MB, free: 9.34 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006972/0.1111, allocations: 3.539 MB / 341.9 MB, free: 5.785 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002312/0.1135, allocations: 39.88 kB / 341.9 MB, free: 5.746 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0079/0.1215, allocations: 8.136 MB / 350.1 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00605/0.1275, allocations: 4.632 MB / 354.7 MB, free: 8.949 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002394/0.13, allocations: 0.9167 MB / 355.6 MB, free: 8.031 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006571/0.1365, allocations: 5.293 MB / 360.9 MB, free: 2.727 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001611/0.1382, allocations: 0.8904 MB / 361.8 MB, free: 1.805 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004444/0.1426, allocations: 2.856 MB / 364.7 MB, free: 14.94 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006852/0.1495, allocations: 5.123 MB / 369.8 MB, free: 9.801 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00133/0.1509, allocations: 352 kB / 370.1 MB, free: 9.457 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001476/0.1524, allocations: 396 kB / 370.5 MB, free: 9.07 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002042/0.1544, allocations: 1.861 MB / 372.4 MB, free: 7.195 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004168/0.1586, allocations: 2.792 MB / 375.2 MB, free: 4.383 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1825/0.3412, allocations: 7.14 MB / 382.3 MB, free: 34.96 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.756e-06/0.3412, allocations: 0 / 382.3 MB, free: 34.96 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3413, allocations: 0 / 382.3 MB, free: 34.96 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002295/0.3415, allocations: 0 / 382.3 MB, free: 34.96 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.01499/0.3565, allocations: 7.652 MB / 390 MB, free: 30.98 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.687e-05/0.3566, allocations: 10.16 kB / 390 MB, free: 30.98 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003842/0.357, allocations: 289.3 kB / 390.3 MB, free: 30.93 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001466/0.3584, allocations: 0.8444 MB / 391.1 MB, free: 30.46 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00411/0.3625, allocations: 3.154 MB / 394.2 MB, free: 28.94 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001333/0.3627, allocations: 156.9 kB / 394.4 MB, free: 28.93 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003237/0.363, allocations: 207.4 kB / 394.6 MB, free: 28.93 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003781/0.3668, allocations: 2.114 MB / 396.7 MB, free: 28.76 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.88e-05/0.3669, allocations: 6.969 kB / 396.7 MB, free: 28.75 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001945/0.3671, allocations: 85.5 kB / 396.8 MB, free: 28.75 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.822e-05/0.3672, allocations: 55.61 kB / 396.9 MB, free: 28.75 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003677/0.3708, allocations: 1.894 MB / 398.8 MB, free: 28.11 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01407/0.3849, allocations: 8.95 MB / 407.7 MB, free: 22.5 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003326/0.3883, allocations: 2.32 MB / 410 MB, free: 21.14 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002281/0.3906, allocations: 1.392 MB / 411.4 MB, free: 20.39 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001231/0.3907, allocations: 49.03 kB / 411.5 MB, free: 20.35 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001933/0.3927, allocations: 1.159 MB / 412.6 MB, free: 19.16 MB / 318.1 MB Notification: Performance of pre-optimization done (n=242): time 5.239e-06/0.3927, allocations: 0 / 412.6 MB, free: 19.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=367): time 0.06231/0.455, allocations: 22.81 MB / 435.4 MB, free: 12.19 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03023/0.4853, allocations: 13.63 MB / 449.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02381/0.5091, allocations: 14.89 MB / 464 MB, free: 15.47 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001171/0.5104, allocations: 85.7 kB / 464 MB, free: 15.38 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004766/0.5152, allocations: 3.724 MB / 467.8 MB, free: 11.65 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00188/0.5171, allocations: 1.219 MB / 469 MB, free: 10.45 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002541/0.5196, allocations: 0.5156 MB / 469.5 MB, free: 9.922 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.5198, allocations: 301.1 kB / 469.8 MB, free: 9.625 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003239/0.523, allocations: 1.252 MB / 471 MB, free: 8.371 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003624/0.5267, allocations: 1.623 MB / 472.7 MB, free: 6.672 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006226/0.5329, allocations: 2.996 MB / 475.7 MB, free: 3.629 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-05/0.5329, allocations: 0 / 475.7 MB, free: 3.629 MB / 366.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01286/0.5458, allocations: 5.207 MB / 480.9 MB, free: 14.46 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.246e-05/0.5459, allocations: 11.98 kB / 480.9 MB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.203e-05/0.5459, allocations: 8 kB / 480.9 MB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005759/0.5517, allocations: 1.392 MB / 482.3 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002968/0.5547, allocations: 0.5448 MB / 482.8 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03116/0.5859, allocations: 23.98 MB / 0.4949 GB, free: 3.387 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004296/0.5902, allocations: 131.8 kB / 0.4951 GB, free: 3.258 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009116/0.5911, allocations: 116 kB / 0.4952 GB, free: 3.145 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.004648/0.5958, allocations: 2.18 MB / 0.4973 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001987/0.5978, allocations: 0.8098 MB / 0.4981 GB, free: 168 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01358/0.6114, allocations: 5.227 MB / 0.5032 GB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.241e-05/0.6115, allocations: 36 kB / 0.5032 GB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.267e-05/0.6115, allocations: 4 kB / 0.5032 GB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.386e-05/0.6116, allocations: 23.86 kB / 0.5032 GB, free: 10.88 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02636/0.638, allocations: 11.09 MB / 0.5141 GB, free: 15.84 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.306e-05/0.6381, allocations: 8.016 kB / 0.5141 GB, free: 15.83 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002698/0.6408, allocations: 452 kB / 0.5145 GB, free: 15.41 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005789/0.6466, allocations: 1.346 MB / 0.5158 GB, free: 14.04 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007819/0.6474, allocations: 75.97 kB / 0.5159 GB, free: 13.97 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2129/0.8603, allocations: 21.86 MB / 0.5373 GB, free: 143 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02317/0.8835, allocations: 11.94 MB / 0.5489 GB, free: 136.6 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01267/0.8963, allocations: 6.944 MB / 0.5557 GB, free: 133.8 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00155/0.8978, allocations: 0.7467 MB / 0.5564 GB, free: 133.7 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008789/0.8987, allocations: 74.94 kB / 0.5565 GB, free: 133.6 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002197/0.9009, allocations: 115.7 kB / 0.5566 GB, free: 133.6 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006509/0.9016, allocations: 269 kB / 0.5569 GB, free: 133.5 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001921/0.9018, allocations: 93.14 kB / 0.557 GB, free: 133.5 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.009384/0.9112, allocations: 11.12 MB / 0.5678 GB, free: 125.6 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.9112, allocations: 0 / 0.5678 GB, free: 125.6 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005225/0.9165, allocations: 1.081 MB / 0.5689 GB, free: 124.5 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.01406/0.9305, allocations: 7.931 MB / 0.5766 GB, free: 116.6 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01026/0.9408, allocations: 4.917 MB / 0.5814 GB, free: 111.6 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.563e-06/0.9409, allocations: 4 kB / 0.5814 GB, free: 111.6 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004161/0.945, allocations: 3.288 MB / 0.5846 GB, free: 108.2 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003527/0.9486, allocations: 0.5362 MB / 0.5852 GB, free: 107.7 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09044/1.039, allocations: 88.11 MB / 0.6712 GB, free: 13.42 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003568/1.043, allocations: 4.013 MB / 0.6751 GB, free: 9.355 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002022/1.045, allocations: 312.9 kB / 0.6754 GB, free: 9.047 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002764/1.047, allocations: 3.213 MB / 0.6785 GB, free: 5.832 MB / 430.1 MB Notification: Performance of SimCode: time 1.173e-06/1.047, allocations: 0 / 0.6785 GB, free: 5.832 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4406/1.488, allocations: 139.5 MB / 0.8148 GB, free: 28.52 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.91/17.4, allocations: 12.38 kB / 0.8148 GB, free: 28.51 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)