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.001427/0.001432, allocations: 177.5 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.214/2.214, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001042/0.001042, allocations: 84.72 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.112e-05/3.133e-05, allocations: 4 kB / 314.9 MB, free: 9.039 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4586/0.4587, allocations: 47.56 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2115/0.6703, allocations: 91.73 MB / 454.2 MB, free: 10.45 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004124/0.6708, allocations: 83.94 kB / 454.2 MB, free: 10.37 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.8278/1.499, allocations: 77.31 MB / 0.5191 GB, free: 100.9 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.866e-06/1.499, allocations: 0 / 0.5191 GB, free: 100.9 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.001351/1.5, allocations: 113.5 kB / 0.5192 GB, free: 100.9 MB / 395.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.02257/1.523, allocations: 5.525 MB / 0.5246 GB, free: 98.17 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.252e-05/1.523, allocations: 9.5 kB / 0.5246 GB, free: 98.17 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004541/1.527, allocations: 0.8638 MB / 0.5255 GB, free: 97.71 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0231/1.55, allocations: 3.603 MB / 0.529 GB, free: 96.5 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002441/1.551, allocations: 68.06 kB / 0.529 GB, free: 96.5 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009458/1.552, allocations: 124.9 kB / 0.5292 GB, free: 96.5 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008254/1.56, allocations: 1.679 MB / 0.5308 GB, free: 96.48 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008427/1.568, allocations: 1.724 MB / 0.5325 GB, free: 96.32 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001253/1.569, allocations: 3.328 kB / 0.5325 GB, free: 96.32 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003886/1.569, allocations: 3.906 kB / 0.5325 GB, free: 96.32 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.483e-05/1.569, allocations: 46.94 kB / 0.5325 GB, free: 96.32 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04088/1.61, allocations: 9.747 MB / 0.5421 GB, free: 92.48 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007055/1.617, allocations: 2.179 MB / 0.5442 GB, free: 91.3 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005176/1.622, allocations: 1.239 MB / 0.5454 GB, free: 90.82 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003683/1.623, allocations: 41.62 kB / 0.5454 GB, free: 90.81 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00405/1.627, allocations: 1.034 MB / 0.5464 GB, free: 90.32 MB / 395.1 MB Notification: Performance of pre-optimization done (n=246): time 1.016e-05/1.627, allocations: 0 / 0.5464 GB, free: 90.32 MB / 395.1 MB Notification: Performance of matching and sorting (n=382): time 0.09405/1.721, allocations: 16.57 MB / 0.5626 GB, free: 76.49 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001417/1.721, allocations: 271.7 kB / 0.5629 GB, free: 76.17 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2871/2.008, allocations: 12.9 MB / 0.5755 GB, free: 64.12 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008373/2.009, allocations: 29.7 kB / 0.5755 GB, free: 64.09 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.006375/2.016, allocations: 2.629 MB / 0.5781 GB, free: 61.45 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002261/2.018, allocations: 1.208 MB / 0.5793 GB, free: 60.22 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005806/2.019, allocations: 0 / 0.5793 GB, free: 60.22 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0003086/2.019, allocations: 442.2 kB / 0.5797 GB, free: 59.78 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005078/2.024, allocations: 1.206 MB / 0.5808 GB, free: 58.57 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005739/2.03, allocations: 1.543 MB / 0.5824 GB, free: 56.96 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005751/2.036, allocations: 1.398 MB / 0.5837 GB, free: 55.57 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.67e-05/2.036, allocations: 0 / 0.5837 GB, free: 55.57 MB / 395.1 MB Notification: Performance of matching and sorting (n=445) (initialization): time 0.02325/2.059, allocations: 4.277 MB / 0.5879 GB, free: 51.26 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.887e-05/2.059, allocations: 15.89 kB / 0.5879 GB, free: 51.24 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.606e-05/2.059, allocations: 4 kB / 0.5879 GB, free: 51.24 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01342/2.073, allocations: 1.37 MB / 0.5893 GB, free: 49.85 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007872/2.08, allocations: 0.5734 MB / 0.5898 GB, free: 49.27 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05465/2.135, allocations: 21.42 MB / 0.6107 GB, free: 26.84 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008769/2.144, allocations: 127.9 kB / 0.6109 GB, free: 26.71 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001072/2.145, allocations: 127.8 kB / 0.611 GB, free: 26.59 MB / 395.1 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.001151/2.146, allocations: 156.4 kB / 0.6111 GB, free: 26.43 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02428/2.171, allocations: 4.723 MB / 0.6157 GB, free: 21.68 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004747/2.175, allocations: 0.841 MB / 0.6166 GB, free: 20.83 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0251/2.2, allocations: 5.106 MB / 0.6215 GB, free: 15.68 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01084/2.211, allocations: 2.246 MB / 0.6237 GB, free: 13.42 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.065e-05/2.211, allocations: 4 kB / 0.6237 GB, free: 13.42 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001232/2.212, allocations: 19.92 kB / 0.6238 GB, free: 13.4 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05774/2.269, allocations: 13.46 MB / 0.6369 GB, free: 15.88 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-05/2.269, allocations: 0 / 0.6369 GB, free: 15.88 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006876/2.276, allocations: 0.493 MB / 0.6374 GB, free: 15.38 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01405/2.29, allocations: 1.411 MB / 0.6388 GB, free: 13.95 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008572/2.291, allocations: 31.95 kB / 0.6388 GB, free: 13.92 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3795/2.671, allocations: 19.66 MB / 0.658 GB, free: 97.37 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1012/2.772, allocations: 26.43 MB / 0.6838 GB, free: 88.95 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0236/2.796, allocations: 7.534 MB / 0.6912 GB, free: 85.27 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005897/2.802, allocations: 1.587 MB / 0.6927 GB, free: 84.57 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002937/2.805, allocations: 28.88 kB / 0.6927 GB, free: 84.57 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006111/2.811, allocations: 109.2 kB / 0.6928 GB, free: 84.56 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001251/2.812, allocations: 291.8 kB / 0.6931 GB, free: 84.52 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000399/2.813, allocations: 103.1 kB / 0.6932 GB, free: 84.5 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.02475/2.837, allocations: 10.29 MB / 0.7033 GB, free: 80.54 MB / 411.1 MB Notification: Performance of sort global known variables: time 8.82e-07/2.837, allocations: 6.688 kB / 0.7033 GB, free: 80.54 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.00901/2.846, allocations: 1.589 MB / 0.7048 GB, free: 80.54 MB / 411.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 ($STATESET4753179017.x[2],$STATESET4753179017.x[1],advancedSolenoid.x,advancedSolenoid.armature.stopper_xMin.v_rel,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,$STATESET4753179016.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.03161/2.878, allocations: 8.713 MB / 0.7133 GB, free: 73.85 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.01052/2.889, allocations: 4.597 MB / 0.7178 GB, free: 69.4 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 8.466e-06/2.889, allocations: 0 / 0.7178 GB, free: 69.4 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007084/2.896, allocations: 3.216 MB / 0.721 GB, free: 66.34 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005757/2.902, allocations: 417.8 kB / 0.7214 GB, free: 65.98 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04774/2.949, allocations: 19.12 MB / 0.74 GB, free: 49.27 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008441/2.958, allocations: 4.211 MB / 0.7441 GB, free: 46.27 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009204/2.967, allocations: 3.464 MB / 0.7475 GB, free: 43.09 MB / 411.1 MB Notification: Performance of SimCode: time 1.242e-06/2.967, allocations: 0 / 0.7475 GB, free: 43.09 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.018/11.99, allocations: 0.8523 GB / 1.6 GB, free: 62.89 MB / 475.1 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)