Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001272/0.001272, allocations: 103.8 kB / 17.63 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001315/0.001315, allocations: 210.4 kB / 18.58 MB, free: 4.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.401/1.401, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001846/0.001846, allocations: 60.17 kB / 307 MB, free: 0.5898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1021, allocations: 50.54 MB / 357.5 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01381/0.116, allocations: 11.38 MB / 368.9 MB, free: 2.602 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1669/0.283, allocations: 3.866 MB / 372.8 MB, free: 9.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001938/0.2849, allocations: 38.66 kB / 372.8 MB, free: 9.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00886/0.2939, allocations: 8.151 MB / 381 MB, free: 8.367 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006422/0.3003, allocations: 4.705 MB / 385.7 MB, free: 6.621 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002228/0.3026, allocations: 0.9202 MB / 386.6 MB, free: 6.359 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005984/0.3086, allocations: 5.398 MB / 392 MB, free: 4.625 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001103/0.3097, allocations: 0.8969 MB / 392.9 MB, free: 4.152 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003223/0.3129, allocations: 2.898 MB / 395.8 MB, free: 2.023 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004899/0.3178, allocations: 5.163 MB / 401 MB, free: 12.98 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000693/0.3185, allocations: 363.9 kB / 401.3 MB, free: 12.62 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009035/0.3194, allocations: 400 kB / 401.7 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001583/0.321, allocations: 1.881 MB / 403.6 MB, free: 10.35 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002753/0.3238, allocations: 2.841 MB / 406.4 MB, free: 7.492 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006587/0.3304, allocations: 7.299 MB / 413.7 MB, free: 432 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3304, allocations: 0 / 413.7 MB, free: 432 kB / 318.1 MB Notification: Performance of FrontEnd: time 3.386e-06/0.3304, allocations: 4 kB / 413.7 MB, free: 428 kB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001075/0.3306, allocations: 0 / 413.7 MB, free: 428 kB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.01208/0.3426, allocations: 7.731 MB / 421.5 MB, free: 8.586 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.348e-05/0.3427, allocations: 8.031 kB / 421.5 MB, free: 8.578 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001635/0.3443, allocations: 0.8999 MB / 422.4 MB, free: 7.668 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004139/0.3485, allocations: 3.218 MB / 425.6 MB, free: 4.57 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001421/0.3486, allocations: 164.2 kB / 425.7 MB, free: 4.406 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003027/0.3489, allocations: 204 kB / 425.9 MB, free: 4.207 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003841/0.3528, allocations: 2.093 MB / 428 MB, free: 2.047 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.002e-05/0.3529, allocations: 7.906 kB / 428 MB, free: 2.039 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001849/0.353, allocations: 80 kB / 428.1 MB, free: 1.961 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-05/0.3531, allocations: 55.98 kB / 428.2 MB, free: 1.906 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003743/0.3568, allocations: 1.844 MB / 430 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01515/0.372, allocations: 9.026 MB / 439 MB, free: 6.914 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003848/0.3759, allocations: 2.326 MB / 441.4 MB, free: 4.523 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002581/0.3785, allocations: 1.352 MB / 442.7 MB, free: 3.168 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000121/0.3786, allocations: 40.94 kB / 442.8 MB, free: 3.133 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00202/0.3806, allocations: 1.128 MB / 443.9 MB, free: 1.969 MB / 350.1 MB Notification: Performance of pre-optimization done (n=246): time 3.888e-06/0.3807, allocations: 0 / 443.9 MB, free: 1.969 MB / 350.1 MB Notification: Performance of matching and sorting (n=371): time 0.06863/0.4493, allocations: 22.45 MB / 466.3 MB, free: 11.23 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0306/0.4799, allocations: 13.73 MB / 480.1 MB, free: 13.16 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01708/0.497, allocations: 15.03 MB / 495.1 MB, free: 14.12 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005925/0.4977, allocations: 89.69 kB / 495.2 MB, free: 14.03 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003685/0.5014, allocations: 3.776 MB / 499 MB, free: 10.25 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001457/0.5028, allocations: 1.222 MB / 0.4885 GB, free: 9.039 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001038/0.5039, allocations: 0.5157 MB / 0.489 GB, free: 8.516 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.504, allocations: 313 kB / 0.4893 GB, free: 8.207 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002462/0.5065, allocations: 1.229 MB / 0.4905 GB, free: 6.977 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002756/0.5093, allocations: 1.603 MB / 0.492 GB, free: 5.293 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00525/0.5145, allocations: 2.964 MB / 0.4949 GB, free: 2.266 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.202e-06/0.5146, allocations: 0 / 0.4949 GB, free: 2.266 MB / 414.1 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.01146/0.526, allocations: 5.202 MB / 0.5 GB, free: 13.02 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.596e-05/0.5261, allocations: 4 kB / 0.5 GB, free: 13.01 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.897e-05/0.5261, allocations: 11.94 kB / 0.5 GB, free: 13 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00579/0.5319, allocations: 1.415 MB / 0.5014 GB, free: 11.56 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002683/0.5346, allocations: 0.5305 MB / 0.5019 GB, free: 11.03 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0312/0.5658, allocations: 24.05 MB / 0.5254 GB, free: 1.75 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003448/0.5693, allocations: 115.7 kB / 0.5255 GB, free: 1.637 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002788/0.5696, allocations: 124.1 kB / 0.5256 GB, free: 1.516 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 (313): * Single equations (assignments): 304 * 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,3,100.0%), (1,4,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.1702/0.7398, allocations: 2.186 MB / 0.5278 GB, free: 136.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001504/0.7413, allocations: 0.824 MB / 0.5286 GB, free: 136.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01116/0.7524, allocations: 5.205 MB / 0.5337 GB, free: 135.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.191e-05/0.7525, allocations: 35.97 kB / 0.5337 GB, free: 135.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.092e-05/0.7525, allocations: 6.25 kB / 0.5337 GB, free: 135.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-05/0.7526, allocations: 23.84 kB / 0.5337 GB, free: 135.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02028/0.7729, allocations: 11.12 MB / 0.5446 GB, free: 133.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.831e-05/0.7729, allocations: 1.375 kB / 0.5446 GB, free: 133.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002313/0.7753, allocations: 450.6 kB / 0.545 GB, free: 133.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005283/0.7805, allocations: 1.36 MB / 0.5463 GB, free: 132.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003399/0.7809, allocations: 78.78 kB / 0.5464 GB, free: 132.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.021/0.8019, allocations: 21.93 MB / 0.5678 GB, free: 115.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02179/0.8237, allocations: 12.02 MB / 0.5796 GB, free: 107.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01211/0.8359, allocations: 6.897 MB / 0.5863 GB, free: 101 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001604/0.8375, allocations: 0.7666 MB / 0.587 GB, free: 100.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005695/0.8381, allocations: 71.91 kB / 0.5871 GB, free: 100.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002042/0.8402, allocations: 95.95 kB / 0.5872 GB, free: 100 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006987/0.8409, allocations: 271.4 kB / 0.5875 GB, free: 99.73 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001692/0.8411, allocations: 95.92 kB / 0.5876 GB, free: 99.64 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.009274/0.8503, allocations: 11.23 MB / 0.5985 GB, free: 88.43 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.8504, allocations: 4 kB / 0.5985 GB, free: 88.43 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004202/0.8546, allocations: 1.094 MB / 0.5996 GB, free: 87.34 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 (257): * Single equations (assignments): 246 * 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.001681/0.8563, allocations: 0.5042 MB / 0.6001 GB, free: 87 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00997/0.8663, allocations: 4.864 MB / 0.6048 GB, free: 82.05 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.8663, allocations: 4.188 kB / 0.6048 GB, free: 82.04 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003924/0.8702, allocations: 3.262 MB / 0.608 GB, free: 78.67 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002787/0.873, allocations: 0.5653 MB / 0.6086 GB, free: 78.11 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01886/0.8919, allocations: 18.19 MB / 0.6263 GB, free: 59.92 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003023/0.8949, allocations: 4.05 MB / 0.6303 GB, free: 55.82 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001877/0.8968, allocations: 317.5 kB / 0.6306 GB, free: 55.51 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005922/0.8974, allocations: 175.4 kB / 0.6308 GB, free: 55.34 MB / 446.1 MB Notification: Performance of SimCode: time 8.02e-07/0.8974, allocations: 3.938 kB / 0.6308 GB, free: 55.33 MB / 446.1 MB Notification: Performance of Templates: time 0.1821/1.08, allocations: 66.52 MB / 0.6957 GB, free: 5.113 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & ./Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/SolenoidActuator/ComparisonPullInStroke/ComparisonPullInStroke.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches