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: translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|advancedSolenoid.armature.stopper_xMax.v_rel|advancedSolenoid.c_par1.v|advancedSolenoid.c_par2.v|advancedSolenoid.coil1.Phi|advancedSolenoid.coil2.Phi|advancedSolenoid.x|simpleSolenoid.armature.stopper_xMax.v_rel|simpleSolenoid.coil.Phi|simpleSolenoid.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|advancedSolenoid.armature.stopper_xMax.v_rel|advancedSolenoid.c_par1.v|advancedSolenoid.c_par2.v|advancedSolenoid.coil1.Phi|advancedSolenoid.coil2.Phi|advancedSolenoid.x|simpleSolenoid.armature.stopper_xMax.v_rel|simpleSolenoid.coil.Phi|simpleSolenoid.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001479/0.001479, allocations: 179.5 kB / 16.41 MB, free: 5.703 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.445/1.445, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.000739/0.0007392, allocations: 89.44 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003383/0.0003383, allocations: 8 kB / 327 MB, free: 184 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2382/0.2386, allocations: 47.57 MB / 374.6 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.008139/0.2468, allocations: 9.631 MB / 384.2 MB, free: 37.89 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006226/0.253, allocations: 3.405 MB / 387.6 MB, free: 35.12 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001674/0.2548, allocations: 38 kB / 387.6 MB, free: 35.11 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005264/0.26, allocations: 8.109 MB / 395.7 MB, free: 27.62 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004771/0.2648, allocations: 4.536 MB / 400.3 MB, free: 23.07 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00176/0.2666, allocations: 0.5616 MB / 400.8 MB, free: 22.51 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004411/0.271, allocations: 4.446 MB / 405.3 MB, free: 18.05 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009107/0.2719, allocations: 0.6761 MB / 406 MB, free: 17.36 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002382/0.2743, allocations: 2.513 MB / 408.5 MB, free: 14.84 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003044/0.2774, allocations: 4.136 MB / 412.6 MB, free: 10.69 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003801/0.2778, allocations: 140 kB / 412.7 MB, free: 10.55 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005504/0.2783, allocations: 176 kB / 412.9 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007747/0.2791, allocations: 1.724 MB / 414.6 MB, free: 8.652 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005855/0.2797, allocations: 1.075 MB / 415.7 MB, free: 7.566 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002724/0.2824, allocations: 5.449 MB / 421.2 MB, free: 2.105 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.2825, allocations: 0 / 421.2 MB, free: 2.105 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.2825, allocations: 4 kB / 421.2 MB, free: 2.102 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.23e-05/0.2826, allocations: 0 / 421.2 MB, free: 2.102 MB / 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.009512/0.2921, allocations: 6.699 MB / 427.9 MB, free: 11.3 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/0.2921, allocations: 8.031 kB / 427.9 MB, free: 11.3 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009885/0.2931, allocations: 0.8562 MB / 428.7 MB, free: 10.43 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003963/0.2971, allocations: 2.776 MB / 431.5 MB, free: 7.586 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001422/0.2973, allocations: 156.1 kB / 431.7 MB, free: 7.43 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002942/0.2976, allocations: 207.9 kB / 431.9 MB, free: 7.227 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004222/0.3018, allocations: 2.119 MB / 434 MB, free: 5.039 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.575e-05/0.3019, allocations: 4 kB / 434 MB, free: 5.035 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002005/0.3021, allocations: 84 kB / 434.1 MB, free: 4.953 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.062e-05/0.3021, allocations: 55.98 kB / 434.1 MB, free: 4.898 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003947/0.3061, allocations: 1.934 MB / 436.1 MB, free: 2.957 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01439/0.3205, allocations: 8.977 MB / 445 MB, free: 9.773 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00395/0.3245, allocations: 2.318 MB / 447.4 MB, free: 7.387 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002656/0.3271, allocations: 1.385 MB / 448.7 MB, free: 5.996 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001393/0.3273, allocations: 42.28 kB / 448.8 MB, free: 5.953 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002234/0.3295, allocations: 1.171 MB / 449.9 MB, free: 4.746 MB / 330.7 MB Notification: Performance of pre-optimization done (n=242): time 4.398e-06/0.3296, allocations: 0 / 449.9 MB, free: 4.746 MB / 330.7 MB Notification: Performance of matching and sorting (n=367): time 0.0649/0.3945, allocations: 22.97 MB / 472.9 MB, free: 13.43 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03171/0.4262, allocations: 13.19 MB / 486.1 MB, free: 15.87 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01639/0.4427, allocations: 14.91 MB / 0.4893 GB, free: 1.016 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006161/0.4433, allocations: 85.7 kB / 0.4894 GB, free: 0.9258 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.185/0.6284, allocations: 3.724 MB / 0.493 GB, free: 105.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001423/0.6298, allocations: 1.215 MB / 0.4942 GB, free: 104.7 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002684/0.6301, allocations: 65.84 kB / 0.4943 GB, free: 104.6 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001907/0.6303, allocations: 434.1 kB / 0.4947 GB, free: 104.3 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003299/0.6336, allocations: 1.258 MB / 0.4959 GB, free: 103.8 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003187/0.6369, allocations: 1.631 MB / 0.4975 GB, free: 102.9 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003231/0.6401, allocations: 1.464 MB / 0.4989 GB, free: 102.2 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.098e-05/0.6401, allocations: 1.188 kB / 0.4989 GB, free: 102.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01283/0.653, allocations: 5.213 MB / 0.504 GB, free: 99.98 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.674e-05/0.6531, allocations: 11.8 kB / 0.504 GB, free: 99.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.154e-05/0.6531, allocations: 3.938 kB / 0.504 GB, free: 99.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005553/0.6587, allocations: 1.398 MB / 0.5054 GB, free: 99.65 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002728/0.6614, allocations: 0.5482 MB / 0.5059 GB, free: 99.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02268/0.6841, allocations: 21.89 MB / 0.5273 GB, free: 78.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00373/0.6879, allocations: 149 kB / 0.5274 GB, free: 78.65 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003981/0.6883, allocations: 112 kB / 0.5275 GB, free: 78.54 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.00348/0.6918, allocations: 2.188 MB / 0.5297 GB, free: 76.34 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001036/0.6928, allocations: 0.8127 MB / 0.5305 GB, free: 75.52 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01038/0.7032, allocations: 5.237 MB / 0.5356 GB, free: 70.23 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.472e-05/0.7033, allocations: 39.95 kB / 0.5356 GB, free: 70.2 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-05/0.7033, allocations: 8 kB / 0.5356 GB, free: 70.19 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.673e-05/0.7033, allocations: 19.92 kB / 0.5357 GB, free: 70.17 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0183/0.7216, allocations: 11.1 MB / 0.5465 GB, free: 59.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.351e-05/0.7217, allocations: 0 / 0.5465 GB, free: 59.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002237/0.724, allocations: 475.5 kB / 0.547 GB, free: 58.56 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005198/0.7292, allocations: 1.353 MB / 0.5483 GB, free: 57.18 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002691/0.7295, allocations: 71.97 kB / 0.5483 GB, free: 57.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01877/0.7482, allocations: 19.99 MB / 0.5679 GB, free: 35.93 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02289/0.7712, allocations: 11.55 MB / 0.5792 GB, free: 24.1 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01307/0.7843, allocations: 6.971 MB / 0.586 GB, free: 17.04 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001696/0.786, allocations: 0.76 MB / 0.5867 GB, free: 16.25 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006068/0.7867, allocations: 67.98 kB / 0.5868 GB, free: 16.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00209/0.7888, allocations: 123.9 kB / 0.5869 GB, free: 16.06 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000616/0.7894, allocations: 267.3 kB / 0.5871 GB, free: 15.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001789/0.7896, allocations: 95.97 kB / 0.5872 GB, free: 15.7 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.009656/0.7992, allocations: 11.14 MB / 0.5981 GB, free: 4.609 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.4e-07/0.7993, allocations: 0 / 0.5981 GB, free: 4.609 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004144/0.8034, allocations: 1.082 MB / 0.5992 GB, free: 3.527 MB / 378.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.001138/0.8046, allocations: 0.4968 MB / 0.5997 GB, free: 3.066 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.007805/0.8124, allocations: 4.815 MB / 0.6044 GB, free: 14.13 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.8124, allocations: 0 / 0.6044 GB, free: 14.13 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005235/0.8177, allocations: 3.296 MB / 0.6076 GB, free: 10.72 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003243/0.8209, allocations: 0.5169 MB / 0.6081 GB, free: 10.21 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02871/0.8496, allocations: 19.87 MB / 0.6275 GB, free: 6.262 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004213/0.8539, allocations: 4.014 MB / 0.6314 GB, free: 2.203 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001383/0.8553, allocations: 191.4 kB / 0.6316 GB, free: 2.016 MB / 410.7 MB Notification: Performance of SimCode: time 1.483e-06/0.8553, allocations: 0 / 0.6316 GB, free: 2.016 MB / 410.7 MB Notification: Performance of Templates: time 1.434/2.289, allocations: 0.5407 GB / 1.172 GB, free: 137.5 MB / 458.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile (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 & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/SolenoidActuator/ComparisonPullInStroke/ComparisonPullInStroke.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches