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/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_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/Complex 3.2.3+maint.om/package.mo): time 0.001311/0.001311, allocations: 182 kB / 17.01 MB, free: 5.125 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.319/1.319, allocations: 205.4 MB / 223.1 MB, free: 9.117 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.0009266/0.0009265, allocations: 104.6 kB / 271.5 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002517/0.0002517, allocations: 8 kB / 328.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2281/0.2283, allocations: 47.57 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1048/0.3332, allocations: 92.48 MB / 468.4 MB, free: 4.148 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000275/0.3335, allocations: 91.95 kB / 468.5 MB, free: 4.059 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3746/0.7081, allocations: 78.1 MB / 0.5338 GB, free: 81.32 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.7081, allocations: 0 / 0.5338 GB, free: 81.32 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0009106/0.709, allocations: 115.4 kB / 0.5339 GB, free: 81.21 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.01429/0.7233, allocations: 6.94 MB / 0.5407 GB, free: 74.18 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.943e-05/0.7234, allocations: 8.031 kB / 0.5407 GB, free: 74.17 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001046/0.7245, allocations: 287.4 kB / 0.5409 GB, free: 73.88 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002031/0.7265, allocations: 0.8566 MB / 0.5418 GB, free: 73.01 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008315/0.7348, allocations: 3.637 MB / 0.5453 GB, free: 69.5 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001627/0.735, allocations: 156.1 kB / 0.5455 GB, free: 69.34 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006297/0.7357, allocations: 207.9 kB / 0.5457 GB, free: 69.14 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005274/0.741, allocations: 2.134 MB / 0.5478 GB, free: 66.94 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.476e-05/0.7411, allocations: 4 kB / 0.5478 GB, free: 66.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002027/0.7413, allocations: 84 kB / 0.5478 GB, free: 66.85 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.983e-05/0.7413, allocations: 55.94 kB / 0.5479 GB, free: 66.8 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00355/0.7449, allocations: 1.992 MB / 0.5498 GB, free: 64.8 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0164/0.7613, allocations: 10.14 MB / 0.5597 GB, free: 54.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003395/0.7647, allocations: 2.403 MB / 0.5621 GB, free: 52.06 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001074/0.7648, allocations: 32.88 kB / 0.5621 GB, free: 52.03 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001769/0.7666, allocations: 1.205 MB / 0.5633 GB, free: 50.8 MB / 378.7 MB Notification: Performance of pre-optimization done (n=246): time 4.569e-06/0.7666, allocations: 3.984 kB / 0.5633 GB, free: 50.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=385): time 0.05371/0.8204, allocations: 21.63 MB / 0.5844 GB, free: 28.89 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.09266/0.913, allocations: 34.49 MB / 0.6181 GB, free: 9.777 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1251/1.038, allocations: 13.47 MB / 0.6313 GB, free: 12.38 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006154/1.039, allocations: 89.7 kB / 0.6313 GB, free: 12.28 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004813/1.044, allocations: 3.723 MB / 0.635 GB, free: 8.551 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001458/1.045, allocations: 1.272 MB / 0.6362 GB, free: 7.289 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002419/1.045, allocations: 64 kB / 0.6363 GB, free: 7.227 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002247/1.046, allocations: 445.4 kB / 0.6367 GB, free: 6.785 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002664/1.048, allocations: 1.354 MB / 0.638 GB, free: 5.43 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002776/1.051, allocations: 1.709 MB / 0.6397 GB, free: 3.652 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002781/1.054, allocations: 1.562 MB / 0.6412 GB, free: 2.094 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.743e-06/1.054, allocations: 0 / 0.6412 GB, free: 2.094 MB / 410.7 MB Notification: Performance of matching and sorting (n=448) (initialization): time 0.1751/1.229, allocations: 5.459 MB / 0.6466 GB, free: 106.4 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.562e-05/1.229, allocations: 7.219 kB / 0.6466 GB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.949e-05/1.229, allocations: 4.781 kB / 0.6466 GB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005334/1.234, allocations: 1.467 MB / 0.648 GB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002771/1.237, allocations: 0.5685 MB / 0.6485 GB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02369/1.261, allocations: 22.66 MB / 0.6707 GB, free: 92.72 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003902/1.265, allocations: 198.9 kB / 0.6709 GB, free: 92.67 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002907/1.265, allocations: 122.1 kB / 0.671 GB, free: 92.64 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.003539/1.269, allocations: 2.194 MB / 0.6731 GB, free: 92.01 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001332/1.27, allocations: 0.86 MB / 0.674 GB, free: 91.68 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01063/1.281, allocations: 5.63 MB / 0.6795 GB, free: 89.47 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004693/1.285, allocations: 2.483 MB / 0.6819 GB, free: 88.48 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.277e-05/1.286, allocations: 5.594 kB / 0.6819 GB, free: 88.48 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.878e-05/1.286, allocations: 19.08 kB / 0.6819 GB, free: 88.48 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02494/1.311, allocations: 14.19 MB / 0.6958 GB, free: 82.26 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.266e-05/1.311, allocations: 4 kB / 0.6958 GB, free: 82.26 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002308/1.313, allocations: 0.4886 MB / 0.6963 GB, free: 81.85 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005141/1.318, allocations: 1.47 MB / 0.6977 GB, free: 80.69 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002357/1.318, allocations: 83.16 kB / 0.6978 GB, free: 80.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0193/1.338, allocations: 20.84 MB / 0.7181 GB, free: 59.96 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.07513/1.413, allocations: 30.51 MB / 0.7479 GB, free: 32.2 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01386/1.427, allocations: 8.044 MB / 0.7558 GB, free: 24 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004157/1.431, allocations: 1.592 MB / 0.7573 GB, free: 22.38 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009833/1.432, allocations: 93.69 kB / 0.7574 GB, free: 22.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002486/1.434, allocations: 171.9 kB / 0.7576 GB, free: 22.12 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005944/1.435, allocations: 291.2 kB / 0.7579 GB, free: 21.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001842/1.435, allocations: 108 kB / 0.758 GB, free: 21.73 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.01271/1.448, allocations: 10.87 MB / 0.7686 GB, free: 10.91 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.41e-07/1.448, allocations: 4 kB / 0.7686 GB, free: 10.91 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005548/1.453, allocations: 1.756 MB / 0.7703 GB, free: 9.16 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.01389/1.467, allocations: 9.344 MB / 0.7794 GB, free: 15.77 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00881/1.476, allocations: 5.071 MB / 0.7844 GB, free: 10.58 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.283e-06/1.476, allocations: 0.5 kB / 0.7844 GB, free: 10.58 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005604/1.482, allocations: 3.529 MB / 0.7878 GB, free: 6.949 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003538/1.485, allocations: 0.4896 MB / 0.7883 GB, free: 6.469 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2716/1.757, allocations: 82.8 MB / 0.8692 GB, free: 85.77 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003641/1.761, allocations: 4.215 MB / 0.8733 GB, free: 84.92 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002967/1.764, allocations: 0.8372 MB / 0.8741 GB, free: 84.8 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004052/1.768, allocations: 3.429 MB / 0.8774 GB, free: 82.7 MB / 442.7 MB Notification: Performance of SimCode: time 9.82e-07/1.768, allocations: 0 / 0.8774 GB, free: 82.7 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5483/2.316, allocations: 162.5 MB / 1.036 GB, free: 105.5 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001663/2.316, allocations: 283 kB / 1.036 GB, free: 105.2 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.957/11.27, allocations: 0 / 1.036 GB, free: 105.2 MB / 458.7 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/linux/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)