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.001049/0.001049, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.645/1.645, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009678/0.000968, allocations: 82.72 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.489e-05/1.49e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08052/0.08055, allocations: 47.59 MB / 363.2 MB, free: 6.977 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3191/0.3997, allocations: 91.98 MB / 455.2 MB, free: 3.582 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002138/0.3999, allocations: 83.08 kB / 455.2 MB, free: 3.539 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2112/0.6111, allocations: 77.31 MB / 0.5201 GB, free: 11.18 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.6112, allocations: 0 / 0.5201 GB, free: 11.18 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.001029/0.6122, allocations: 108 kB / 0.5202 GB, free: 11.07 MB / 410.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.01529/0.6275, allocations: 5.54 MB / 0.5256 GB, free: 5.457 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.32e-05/0.6276, allocations: 19.95 kB / 0.5256 GB, free: 5.438 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002798/0.6304, allocations: 0.8602 MB / 0.5264 GB, free: 4.566 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009432/0.6398, allocations: 3.593 MB / 0.5299 GB, free: 0.9062 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001417/0.64, allocations: 68 kB / 0.53 GB, free: 0.8398 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004268/0.6405, allocations: 123.9 kB / 0.5301 GB, free: 0.7188 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.2933/0.9338, allocations: 1.673 MB / 0.5318 GB, free: 99.19 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003972/0.9378, allocations: 1.73 MB / 0.5334 GB, free: 99.04 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.006e-05/0.9379, allocations: 2.891 kB / 0.5334 GB, free: 99.04 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001613/0.9381, allocations: 0.9688 kB / 0.5334 GB, free: 99.04 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.678e-05/0.9381, allocations: 53.05 kB / 0.5335 GB, free: 99.04 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02297/0.9611, allocations: 9.732 MB / 0.543 GB, free: 97.54 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00417/0.9653, allocations: 2.19 MB / 0.5451 GB, free: 97.25 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002444/0.9678, allocations: 1.242 MB / 0.5464 GB, free: 97.21 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001551/0.968, allocations: 39.8 kB / 0.5464 GB, free: 97.21 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001914/0.9699, allocations: 1.037 MB / 0.5474 GB, free: 97.07 MB / 410.7 MB Notification: Performance of pre-optimization done (n=246): time 4.508e-06/0.9699, allocations: 0 / 0.5474 GB, free: 97.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=382): time 0.04085/1.011, allocations: 16.56 MB / 0.5636 GB, free: 91.24 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001139/1.011, allocations: 277.3 kB / 0.5638 GB, free: 90.95 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1374/1.148, allocations: 12.9 MB / 0.5764 GB, free: 86.59 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008491/1.149, allocations: 25.7 kB / 0.5765 GB, free: 86.56 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004512/1.154, allocations: 3.475 MB / 0.5799 GB, free: 83.96 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001494/1.155, allocations: 1.216 MB / 0.581 GB, free: 83.16 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003589/1.156, allocations: 1.781 kB / 0.581 GB, free: 83.16 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000179/1.156, allocations: 435.6 kB / 0.5815 GB, free: 82.79 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002129/1.158, allocations: 1.21 MB / 0.5826 GB, free: 82.23 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00223/1.16, allocations: 1.531 MB / 0.5841 GB, free: 81.4 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002191/1.162, allocations: 1.401 MB / 0.5855 GB, free: 80.75 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.54e-05/1.163, allocations: 0 / 0.5855 GB, free: 80.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=445) (initialization): time 0.01141/1.174, allocations: 4.982 MB / 0.5904 GB, free: 78.73 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.916e-05/1.174, allocations: 7.156 kB / 0.5904 GB, free: 78.73 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.199e-05/1.174, allocations: 7 kB / 0.5904 GB, free: 78.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005389/1.18, allocations: 1.364 MB / 0.5917 GB, free: 78.37 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00324/1.183, allocations: 0.5721 MB / 0.5923 GB, free: 78.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02303/1.206, allocations: 21.41 MB / 0.6132 GB, free: 57.28 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004972/1.211, allocations: 126.9 kB / 0.6133 GB, free: 57.19 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006646/1.212, allocations: 122.1 kB / 0.6134 GB, free: 57.09 MB / 410.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: simpleSolenoid.g_mAirPar.V_m:DUMMY_STATE(unit = "A" ) "Magnetic potential difference of ports" type: Real 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (318): * Single equations (assignments): 307 * 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%) 7,(1,100.0%) 4} * Non-linear torn systems: 2 {3 42,3 51} Notification: Performance of prepare postOptimizeDAE: time 0.0006973/1.212, allocations: 163.2 kB / 0.6136 GB, free: 56.93 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01096/1.223, allocations: 4.725 MB / 0.6182 GB, free: 52.62 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002753/1.226, allocations: 0.8488 MB / 0.619 GB, free: 51.77 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01361/1.24, allocations: 5.112 MB / 0.624 GB, free: 47.36 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004603/1.244, allocations: 2.235 MB / 0.6262 GB, free: 45.36 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.649e-05/1.244, allocations: 7.953 kB / 0.6262 GB, free: 45.35 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.115e-05/1.244, allocations: 19.64 kB / 0.6262 GB, free: 45.35 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02995/1.274, allocations: 13.45 MB / 0.6394 GB, free: 34.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.281e-05/1.275, allocations: 8.609 kB / 0.6394 GB, free: 34.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002731/1.277, allocations: 0.4904 MB / 0.6398 GB, free: 34.19 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005884/1.283, allocations: 1.424 MB / 0.6412 GB, free: 33.02 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007449/1.284, allocations: 30.53 kB / 0.6413 GB, free: 33 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02095/1.305, allocations: 19.66 MB / 0.6605 GB, free: 13.59 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.05769/1.363, allocations: 26.48 MB / 0.6863 GB, free: 4.547 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2841/1.647, allocations: 7.524 MB / 0.6937 GB, free: 98.62 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004598/1.651, allocations: 1.588 MB / 0.6952 GB, free: 98.52 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002169/1.654, allocations: 27.69 kB / 0.6952 GB, free: 98.52 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002916/1.657, allocations: 113.8 kB / 0.6953 GB, free: 98.52 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001261/1.658, allocations: 289.4 kB / 0.6956 GB, free: 98.52 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003353/1.658, allocations: 106.3 kB / 0.6957 GB, free: 98.52 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.02268/1.681, allocations: 10.29 MB / 0.7058 GB, free: 98.27 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.052e-06/1.681, allocations: 0 / 0.7058 GB, free: 98.27 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0119/1.693, allocations: 1.592 MB / 0.7073 GB, free: 98.27 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 ($STATESET6.x[2],$STATESET6.x[1],advancedSolenoid.x,advancedSolenoid.armature.stopper_xMin.v_rel,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,$STATESET5.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (265): * Single equations (assignments): 254 * 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%) 6,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {4 53,3 43} Notification: Performance of Backend phase and start with SimCode phase: time 0.01675/1.71, allocations: 8.706 MB / 0.7158 GB, free: 96.12 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007609/1.717, allocations: 4.608 MB / 0.7203 GB, free: 95.05 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.052e-05/1.717, allocations: 3.188 kB / 0.7203 GB, free: 95.05 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004977/1.722, allocations: 3.208 MB / 0.7235 GB, free: 93.98 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003994/1.726, allocations: 427.6 kB / 0.7239 GB, free: 93.94 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03871/1.765, allocations: 18.77 MB / 0.7422 GB, free: 89.23 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005652/1.771, allocations: 4.21 MB / 0.7463 GB, free: 88.09 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003681/1.775, allocations: 0.8381 MB / 0.7471 GB, free: 87.93 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005541/1.78, allocations: 3.423 MB / 0.7505 GB, free: 85.01 MB / 426.7 MB Notification: Performance of SimCode: time 1.903e-06/1.78, allocations: 0 / 0.7505 GB, free: 85.01 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6697/2.45, allocations: 155.6 MB / 0.9024 GB, free: 87.22 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001838/2.45, allocations: 206 kB / 0.9026 GB, free: 86.95 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.22/14.67, allocations: 0 / 0.9026 GB, free: 86.95 MB / 442.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)