Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_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_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00133/0.001331, allocations: 109.8 kB / 17.28 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001188/0.001188, allocations: 197.3 kB / 18.21 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.458/1.458, allocations: 222.9 MB / 241.9 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 50.53 kB / 300.8 MB, free: 6.219 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.105, allocations: 49.45 MB / 350.2 MB, free: 4.766 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.0125/0.1176, allocations: 11 MB / 361.2 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007541/0.1252, allocations: 3.608 MB / 364.8 MB, free: 6.094 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002567/0.1278, allocations: 39.88 kB / 364.9 MB, free: 6.055 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.195/0.3228, allocations: 8.034 MB / 372.9 MB, free: 13.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01129/0.3341, allocations: 4.507 MB / 377.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003862/0.3381, allocations: 0.844 MB / 378.3 MB, free: 13.6 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009787/0.3479, allocations: 5.291 MB / 383.6 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001477/0.3494, allocations: 0.8887 MB / 384.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005884/0.3553, allocations: 2.869 MB / 387.3 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005973/0.3613, allocations: 5.304 MB / 392.6 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007465/0.3621, allocations: 348.8 kB / 393 MB, free: 8.82 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001193/0.3633, allocations: 388 kB / 393.3 MB, free: 8.441 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00111/0.3644, allocations: 1.95 MB / 395.3 MB, free: 6.484 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00179/0.3662, allocations: 2.79 MB / 398.1 MB, free: 3.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003915/0.3701, allocations: 5.663 MB / 403.7 MB, free: 14.25 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.008e-05/0.3701, allocations: 0 / 403.7 MB, free: 14.25 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.3701, allocations: 4.719 kB / 403.8 MB, free: 14.25 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001838/0.3703, allocations: 0 / 403.8 MB, free: 14.25 MB / 318.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.01125/0.3816, allocations: 7.642 MB / 411.4 MB, free: 6.516 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.3817, allocations: 12.03 kB / 411.4 MB, free: 6.504 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009912/0.3826, allocations: 0.8454 MB / 412.3 MB, free: 5.648 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003897/0.3866, allocations: 3.161 MB / 415.4 MB, free: 2.602 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000121/0.3867, allocations: 156.5 kB / 415.6 MB, free: 2.445 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003564/0.3871, allocations: 208.5 kB / 415.8 MB, free: 2.242 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004052/0.3911, allocations: 2.112 MB / 417.9 MB, free: 64 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.48e-05/0.3912, allocations: 7.906 kB / 417.9 MB, free: 56 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002254/0.3914, allocations: 85.88 kB / 418 MB, free: 15.98 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4e-05/0.3915, allocations: 52 kB / 418 MB, free: 15.93 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003947/0.3954, allocations: 1.899 MB / 419.9 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01535/0.4108, allocations: 8.954 MB / 428.9 MB, free: 4.957 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003883/0.4147, allocations: 2.325 MB / 431.2 MB, free: 2.562 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002549/0.4173, allocations: 1.38 MB / 432.6 MB, free: 1.184 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001446/0.4175, allocations: 41.52 kB / 432.6 MB, free: 1.148 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002508/0.42, allocations: 1.159 MB / 433.8 MB, free: 15.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=242): time 5.53e-06/0.42, allocations: 0 / 433.8 MB, free: 15.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=367): time 0.07142/0.4914, allocations: 22.81 MB / 456.6 MB, free: 8.879 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03202/0.5235, allocations: 13.64 MB / 470.2 MB, free: 10.89 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02188/0.5454, allocations: 14.9 MB / 485.1 MB, free: 12.12 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007066/0.5462, allocations: 89.7 kB / 485.2 MB, free: 12.03 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004369/0.5506, allocations: 3.727 MB / 488.9 MB, free: 8.297 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001756/0.5523, allocations: 1.213 MB / 490.1 MB, free: 7.094 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001992/0.5543, allocations: 0.5117 MB / 490.7 MB, free: 6.574 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.5545, allocations: 301.1 kB / 491 MB, free: 6.277 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003025/0.5575, allocations: 1.256 MB / 492.2 MB, free: 5.02 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003142/0.5607, allocations: 1.626 MB / 493.8 MB, free: 3.312 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005922/0.5666, allocations: 2.987 MB / 496.8 MB, free: 264 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-05/0.5667, allocations: 4 kB / 496.8 MB, free: 260 kB / 398.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.0126/0.5793, allocations: 5.208 MB / 0.4903 GB, free: 11 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.937e-05/0.5793, allocations: 4 kB / 0.4903 GB, free: 11 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.14e-05/0.5794, allocations: 8 kB / 0.4903 GB, free: 10.99 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005832/0.5852, allocations: 1.401 MB / 0.4917 GB, free: 9.562 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002898/0.5881, allocations: 0.5383 MB / 0.4922 GB, free: 9.023 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03005/0.6182, allocations: 23.98 MB / 0.5156 GB, free: 15.81 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003877/0.6221, allocations: 127.9 kB / 0.5157 GB, free: 15.69 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006399/0.6228, allocations: 112 kB / 0.5158 GB, free: 15.58 MB / 446.1 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 ($PRE.comparisonWithFEA.nextTimeEvent,$whenCondition1,comparisonWithFEA.nextTimeEventScaled,$PRE.comparisonWithFEA.nextTimeEventScaled,comparisonWithFEA.nextTimeEvent,simpleSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,advancedSolenoid.armature.stopper_xMax.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 (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,3,100.0%), (1,3,100.0%), (1,4,100.0%), (1,4,100.0%), (1,3,100.0%), (1,5,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,43), (3,50)} Notification: Performance of prepare postOptimizeDAE: time 0.004041/0.6268, allocations: 2.191 MB / 0.518 GB, free: 13.38 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001425/0.6282, allocations: 0.8174 MB / 0.5188 GB, free: 12.55 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01258/0.6408, allocations: 5.219 MB / 0.5239 GB, free: 7.277 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.71e-05/0.6409, allocations: 36 kB / 0.5239 GB, free: 7.242 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.304e-05/0.641, allocations: 12 kB / 0.5239 GB, free: 7.23 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.104e-05/0.641, allocations: 15.94 kB / 0.5239 GB, free: 7.215 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2151/0.8561, allocations: 11.08 MB / 0.5347 GB, free: 144.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.423e-05/0.8562, allocations: 1.375 kB / 0.5347 GB, free: 144.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002694/0.8589, allocations: 460.2 kB / 0.5352 GB, free: 144.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006026/0.8649, allocations: 1.343 MB / 0.5365 GB, free: 144.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000611/0.8656, allocations: 76.62 kB / 0.5366 GB, free: 144.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02436/0.89, allocations: 21.86 MB / 0.5579 GB, free: 127.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02377/0.9138, allocations: 11.95 MB / 0.5696 GB, free: 120.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01304/0.9269, allocations: 6.941 MB / 0.5764 GB, free: 118 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001342/0.9282, allocations: 0.7511 MB / 0.5771 GB, free: 117.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007575/0.929, allocations: 67.19 kB / 0.5772 GB, free: 117.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002171/0.9312, allocations: 114 kB / 0.5773 GB, free: 117.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007436/0.9319, allocations: 270.7 kB / 0.5775 GB, free: 117.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001835/0.9321, allocations: 94.75 kB / 0.5776 GB, free: 117.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.009573/0.9417, allocations: 11.12 MB / 0.5885 GB, free: 108.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.9417, allocations: 0 / 0.5885 GB, free: 108.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004196/0.9459, allocations: 1.082 MB / 0.5895 GB, free: 107.5 MB / 446.1 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 (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,2,100.0%), (1,2,100.0%), (1,4,100.0%), (1,5,100.0%), (1,3,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,49), (4,42)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001379/0.9474, allocations: 0.5013 MB / 0.59 GB, free: 107.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01082/0.9582, allocations: 4.923 MB / 0.5948 GB, free: 102.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/0.9582, allocations: 0.625 kB / 0.5948 GB, free: 102.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004636/0.9629, allocations: 3.289 MB / 0.598 GB, free: 98.83 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00361/0.9665, allocations: 0.5474 MB / 0.5986 GB, free: 98.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02543/0.992, allocations: 20.55 MB / 0.6186 GB, free: 77.73 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003543/0.9955, allocations: 4.016 MB / 0.6226 GB, free: 73.67 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001266/0.9968, allocations: 195.4 kB / 0.6227 GB, free: 73.48 MB / 446.1 MB Notification: Performance of SimCode: time 1.072e-06/0.9968, allocations: 0 / 0.6227 GB, free: 73.48 MB / 446.1 MB Notification: Performance of Templates: time 1.313/2.31, allocations: 0.5417 GB / 1.164 GB, free: 52 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/SolenoidActuator/ComparisonPullInStroke/ComparisonPullInStroke.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches