Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_3_2_3_cpp_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_cpp_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 3.2.3+maint.om/package.mo): time 0.0008673/0.0008673, allocations: 176.7 kB / 16.72 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.279/1.279, allocations: 205.4 MB / 222.9 MB, free: 9.035 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007025/0.0007024, allocations: 94.3 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002881/0.0002881, allocations: 16 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2072/0.2075, allocations: 47.57 MB / 375.2 MB, free: 45.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.007823/0.2154, allocations: 9.637 MB / 384.8 MB, free: 37.9 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006114/0.2215, allocations: 3.398 MB / 388.2 MB, free: 35.14 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002988/0.2245, allocations: 37.47 kB / 388.3 MB, free: 35.13 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006082/0.2307, allocations: 8.109 MB / 396.4 MB, free: 27.47 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005008/0.2357, allocations: 4.54 MB / 400.9 MB, free: 22.92 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001899/0.2376, allocations: 0.5577 MB / 401.5 MB, free: 22.36 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005708/0.2433, allocations: 4.492 MB / 406 MB, free: 17.86 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001207/0.2446, allocations: 0.7545 MB / 406.7 MB, free: 17.08 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003533/0.2481, allocations: 2.509 MB / 409.2 MB, free: 14.57 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004041/0.2521, allocations: 4.136 MB / 413.4 MB, free: 10.42 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005395/0.2527, allocations: 140 kB / 413.5 MB, free: 10.29 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008512/0.2536, allocations: 176 kB / 413.7 MB, free: 10.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001015/0.2546, allocations: 1.724 MB / 415.4 MB, free: 8.383 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001755/0.2564, allocations: 2.406 MB / 417.8 MB, free: 5.953 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003218/0.2596, allocations: 5.448 MB / 423.3 MB, free: 0.4922 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.815e-06/0.2596, allocations: 3.938 kB / 423.3 MB, free: 500 kB / 298.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.2596, allocations: 0 / 423.3 MB, free: 500 kB / 298.7 MB Notification: Performance of Transformations before backend: time 0.000156/0.2598, allocations: 0 / 423.3 MB, free: 500 kB / 298.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.01042/0.2702, allocations: 6.609 MB / 429.9 MB, free: 9.781 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.2703, allocations: 8.031 kB / 429.9 MB, free: 9.773 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005611/0.2708, allocations: 291.6 kB / 430.2 MB, free: 9.477 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00102/0.2718, allocations: 0.8455 MB / 431 MB, free: 8.621 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00394/0.2758, allocations: 3.155 MB / 434.2 MB, free: 5.391 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001218/0.2759, allocations: 156.5 kB / 434.3 MB, free: 5.234 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002781/0.2762, allocations: 219.8 kB / 434.5 MB, free: 5.02 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004102/0.2803, allocations: 2.116 MB / 436.6 MB, free: 2.836 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.295e-05/0.2804, allocations: 4 kB / 436.6 MB, free: 2.832 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001824/0.2806, allocations: 84 kB / 436.7 MB, free: 2.75 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.414e-05/0.2807, allocations: 56 kB / 436.8 MB, free: 2.695 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00414/0.2848, allocations: 1.938 MB / 438.7 MB, free: 0.7461 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01387/0.2987, allocations: 8.973 MB / 447.7 MB, free: 7.57 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003696/0.3024, allocations: 2.337 MB / 450 MB, free: 5.168 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002611/0.3051, allocations: 1.384 MB / 451.4 MB, free: 3.781 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001297/0.3052, allocations: 38.28 kB / 451.5 MB, free: 3.742 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002139/0.3074, allocations: 1.171 MB / 452.6 MB, free: 2.535 MB / 330.7 MB Notification: Performance of pre-optimization done (n=242): time 4.418e-06/0.3074, allocations: 3.938 kB / 452.6 MB, free: 2.531 MB / 330.7 MB Notification: Performance of matching and sorting (n=367): time 0.06499/0.3724, allocations: 23.05 MB / 475.7 MB, free: 11.12 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02913/0.4015, allocations: 13.2 MB / 488.9 MB, free: 13.56 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1663/0.5679, allocations: 14.91 MB / 0.492 GB, free: 102.8 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005404/0.5685, allocations: 84.17 kB / 0.4921 GB, free: 102.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003012/0.5715, allocations: 3.726 MB / 0.4957 GB, free: 100.9 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001104/0.5727, allocations: 1.216 MB / 0.4969 GB, free: 100.6 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002107/0.5729, allocations: 65.38 kB / 0.4969 GB, free: 100.5 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.573, allocations: 433.4 kB / 0.4974 GB, free: 100.1 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002529/0.5756, allocations: 1.257 MB / 0.4986 GB, free: 99.62 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002617/0.5782, allocations: 1.638 MB / 0.5002 GB, free: 98.79 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005163/0.5834, allocations: 3.009 MB / 0.5031 GB, free: 97.23 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.398e-05/0.5834, allocations: 0 / 0.5031 GB, free: 97.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01038/0.5938, allocations: 5.223 MB / 0.5082 GB, free: 95.14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.117e-05/0.5939, allocations: 7.156 kB / 0.5082 GB, free: 95.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.964e-05/0.5939, allocations: 8.141 kB / 0.5082 GB, free: 95.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005049/0.5989, allocations: 1.397 MB / 0.5096 GB, free: 94.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002692/0.6017, allocations: 0.5507 MB / 0.5101 GB, free: 94.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02119/0.6229, allocations: 21.89 MB / 0.5315 GB, free: 74.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002958/0.6259, allocations: 148 kB / 0.5317 GB, free: 74.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002979/0.6262, allocations: 113.4 kB / 0.5318 GB, free: 73.93 MB / 378.7 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 ($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 () * 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 (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%) 3,(1,100.0%) 4,(1,100.0%) 5,(1,100.0%) 4} * Non-linear torn systems: 2 {2 43,3 50} Notification: Performance of prepare postOptimizeDAE: time 0.002673/0.6289, allocations: 2.184 MB / 0.5339 GB, free: 71.74 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008161/0.6297, allocations: 0.8208 MB / 0.5347 GB, free: 70.91 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009677/0.6394, allocations: 5.24 MB / 0.5398 GB, free: 65.62 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.288e-05/0.6394, allocations: 43.98 kB / 0.5399 GB, free: 65.57 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.243e-05/0.6394, allocations: 7.938 kB / 0.5399 GB, free: 65.57 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.576e-05/0.6395, allocations: 15.94 kB / 0.5399 GB, free: 65.55 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0165/0.656, allocations: 11.11 MB / 0.5507 GB, free: 54.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-05/0.656, allocations: 7.938 kB / 0.5507 GB, free: 54.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002144/0.6582, allocations: 470.7 kB / 0.5512 GB, free: 53.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004717/0.6629, allocations: 1.349 MB / 0.5525 GB, free: 52.57 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000266/0.6632, allocations: 75.97 kB / 0.5526 GB, free: 52.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01835/0.6816, allocations: 20 MB / 0.5721 GB, free: 31.3 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02172/0.7033, allocations: 11.55 MB / 0.5834 GB, free: 19.48 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01178/0.7151, allocations: 6.98 MB / 0.5902 GB, free: 12.4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001141/0.7163, allocations: 0.7599 MB / 0.5909 GB, free: 11.61 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005051/0.7168, allocations: 64 kB / 0.591 GB, free: 11.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001917/0.7187, allocations: 119.9 kB / 0.5911 GB, free: 11.43 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007097/0.7195, allocations: 271.4 kB / 0.5914 GB, free: 11.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001763/0.7197, allocations: 99.97 kB / 0.5915 GB, free: 11.07 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.008606/0.7283, allocations: 11.14 MB / 0.6024 GB, free: 15.97 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.7283, allocations: 0 / 0.6024 GB, free: 15.97 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003924/0.7322, allocations: 1.085 MB / 0.6034 GB, free: 14.89 MB / 394.7 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 (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%) 5,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {3 49,4 42} Notification: Performance of Backend phase and start with SimCode phase: time 0.01444/0.7467, allocations: 7.96 MB / 0.6112 GB, free: 6.863 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.008064/0.7548, allocations: 4.81 MB / 0.6159 GB, free: 1.926 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.203e-06/0.7548, allocations: 3.938 kB / 0.6159 GB, free: 1.922 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005115/0.7599, allocations: 3.293 MB / 0.6191 GB, free: 14.52 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005251/0.7652, allocations: 0.5165 MB / 0.6196 GB, free: 14 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2464/1.012, allocations: 79.02 MB / 0.6968 GB, free: 103.1 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003096/1.015, allocations: 4.012 MB / 0.7007 GB, free: 99.07 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003164/1.018, allocations: 3.252 MB / 0.7039 GB, free: 95.82 MB / 426.7 MB Notification: Performance of SimCode: time 9.72e-07/1.018, allocations: 0 / 0.7039 GB, free: 95.82 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 10.28/11.3, allocations: 0.8423 GB / 1.546 GB, free: 78.87 MB / 458.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1)