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.001603/0.001603, allocations: 185.9 kB / 16.41 MB, free: 5.727 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.937/1.937, allocations: 205.4 MB / 222.5 MB, free: 9.133 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.001118/0.001118, allocations: 92.42 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003997/0.0003996, allocations: 8 kB / 327.1 MB, free: 132 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3247/0.3251, allocations: 47.57 MB / 374.6 MB, free: 45.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1506/0.4758, allocations: 92.48 MB / 467.1 MB, free: 4.16 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003234/0.4761, allocations: 91.95 kB / 467.2 MB, free: 4.07 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5905/1.067, allocations: 78.1 MB / 0.5325 GB, free: 81.29 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.435e-06/1.067, allocations: 4 kB / 0.5325 GB, free: 81.29 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.001066/1.068, allocations: 112 kB / 0.5326 GB, free: 81.18 MB / 378.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.01842/1.086, allocations: 6.937 MB / 0.5394 GB, free: 74.15 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.044e-05/1.086, allocations: 8.031 kB / 0.5394 GB, free: 74.14 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00118/1.087, allocations: 287.4 kB / 0.5397 GB, free: 73.85 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002091/1.09, allocations: 0.8644 MB / 0.5405 GB, free: 72.97 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01176/1.101, allocations: 3.636 MB / 0.5441 GB, free: 69.46 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000209/1.102, allocations: 162.8 kB / 0.5442 GB, free: 69.3 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008074/1.102, allocations: 203.9 kB / 0.5444 GB, free: 69.1 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007052/1.11, allocations: 2.135 MB / 0.5465 GB, free: 66.9 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001079/1.11, allocations: 3.938 kB / 0.5465 GB, free: 66.89 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003146/1.11, allocations: 88 kB / 0.5466 GB, free: 66.81 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.113e-05/1.11, allocations: 48 kB / 0.5467 GB, free: 66.76 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007088/1.117, allocations: 1.997 MB / 0.5486 GB, free: 64.76 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02803/1.145, allocations: 10.13 MB / 0.5585 GB, free: 54.49 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006334/1.152, allocations: 2.405 MB / 0.5608 GB, free: 52.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003533/1.152, allocations: 39.45 kB / 0.5609 GB, free: 51.99 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00377/1.156, allocations: 1.201 MB / 0.5621 GB, free: 50.76 MB / 378.7 MB Notification: Performance of pre-optimization done (n=246): time 7.524e-06/1.156, allocations: 0 / 0.5621 GB, free: 50.76 MB / 378.7 MB Notification: Performance of matching and sorting (n=385): time 0.1003/1.256, allocations: 21.63 MB / 0.5832 GB, free: 28.85 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1733/1.43, allocations: 34.5 MB / 0.6169 GB, free: 9.734 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.168/1.598, allocations: 13.47 MB / 0.63 GB, free: 12.33 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008392/1.598, allocations: 85.7 kB / 0.6301 GB, free: 12.24 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00582/1.604, allocations: 2.868 MB / 0.6329 GB, free: 9.367 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002268/1.607, allocations: 1.27 MB / 0.6341 GB, free: 8.109 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006509/1.607, allocations: 68 kB / 0.6342 GB, free: 8.043 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.00036/1.608, allocations: 446.2 kB / 0.6346 GB, free: 7.598 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005512/1.613, allocations: 1.369 MB / 0.636 GB, free: 6.23 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006133/1.619, allocations: 1.701 MB / 0.6376 GB, free: 4.461 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006022/1.626, allocations: 1.562 MB / 0.6392 GB, free: 2.902 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.082e-05/1.626, allocations: 0 / 0.6392 GB, free: 2.902 MB / 410.7 MB Notification: Performance of matching and sorting (n=448) (initialization): time 0.3125/1.938, allocations: 4.816 MB / 0.6439 GB, free: 106.3 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.448e-05/1.938, allocations: 3.688 kB / 0.6439 GB, free: 106.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.129e-05/1.938, allocations: 3.875 kB / 0.6439 GB, free: 106.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009876/1.948, allocations: 1.46 MB / 0.6453 GB, free: 106.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005571/1.954, allocations: 0.5716 MB / 0.6458 GB, free: 106.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04397/1.998, allocations: 22.65 MB / 0.668 GB, free: 92.86 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006474/2.004, allocations: 202.5 kB / 0.6682 GB, free: 92.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009174/2.005, allocations: 118 kB / 0.6683 GB, free: 92.77 MB / 410.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (320): * Single equations (assignments): 309 * 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%) 5,(1,100.0%) 4} * Non-linear torn systems: 2 {2 43,3 54} Notification: Performance of prepare postOptimizeDAE: time 0.006241/2.012, allocations: 2.199 MB / 0.6704 GB, free: 92.14 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002541/2.014, allocations: 0.8522 MB / 0.6713 GB, free: 92.14 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02225/2.036, allocations: 5.641 MB / 0.6768 GB, free: 89.94 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009812/2.046, allocations: 2.471 MB / 0.6792 GB, free: 88.96 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.854e-05/2.046, allocations: 5.75 kB / 0.6792 GB, free: 88.96 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001037/2.046, allocations: 18.52 kB / 0.6792 GB, free: 88.96 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04593/2.092, allocations: 14.21 MB / 0.6931 GB, free: 83.39 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.516e-05/2.092, allocations: 3.438 kB / 0.6931 GB, free: 83.39 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004909/2.097, allocations: 497.4 kB / 0.6935 GB, free: 83.35 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009921/2.107, allocations: 1.469 MB / 0.695 GB, free: 82.27 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007532/2.108, allocations: 89.55 kB / 0.6951 GB, free: 82.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03562/2.144, allocations: 20.84 MB / 0.7154 GB, free: 61.54 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1424/2.286, allocations: 30.5 MB / 0.7452 GB, free: 33.77 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02609/2.312, allocations: 8.041 MB / 0.7531 GB, free: 25.57 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004858/2.317, allocations: 1.605 MB / 0.7546 GB, free: 23.95 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002303/2.32, allocations: 91.98 kB / 0.7547 GB, free: 23.86 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005556/2.325, allocations: 175.5 kB / 0.7549 GB, free: 23.69 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001316/2.327, allocations: 291.2 kB / 0.7552 GB, free: 23.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003892/2.327, allocations: 104 kB / 0.7553 GB, free: 23.3 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.02484/2.352, allocations: 10.87 MB / 0.7659 GB, free: 12.48 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.52e-07/2.352, allocations: 0 / 0.7659 GB, free: 12.48 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.008139/2.36, allocations: 1.759 MB / 0.7676 GB, free: 10.72 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (266): * Single equations (assignments): 255 * 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%) 4,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 5,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {5 55,4 42} Notification: Performance of Backend phase and start with SimCode phase: time 0.02842/2.389, allocations: 9.335 MB / 0.7767 GB, free: 1.324 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01588/2.405, allocations: 5.078 MB / 0.7817 GB, free: 12.14 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.476e-06/2.405, allocations: 0 / 0.7817 GB, free: 12.14 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0109/2.415, allocations: 3.53 MB / 0.7851 GB, free: 8.496 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005635/2.421, allocations: 498.3 kB / 0.7856 GB, free: 8.023 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.474/2.895, allocations: 83.16 MB / 0.8668 GB, free: 86.48 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008847/2.904, allocations: 4.217 MB / 0.8709 GB, free: 85.63 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008709/2.913, allocations: 3.449 MB / 0.8743 GB, free: 83.54 MB / 442.7 MB Notification: Performance of SimCode: time 1.202e-06/2.913, allocations: 3.938 kB / 0.8743 GB, free: 83.53 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.05/11.96, allocations: 0.8518 GB / 1.726 GB, free: 85.73 MB / 474.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)