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.001244/0.001244, allocations: 108.1 kB / 17.74 MB, free: 5.23 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.001296/0.001296, allocations: 191 kB / 18.66 MB, free: 4.312 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.304/1.304, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001076/0.001076, allocations: 51.92 kB / 352 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2578/0.2589, allocations: 49.43 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01239/0.2713, allocations: 11.1 MB / 412.5 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007963/0.2793, allocations: 3.639 MB / 416.1 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0025/0.2819, allocations: 39.88 kB / 416.2 MB, free: 10.03 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008309/0.2902, allocations: 8.132 MB / 424.3 MB, free: 1.879 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006756/0.2971, allocations: 4.624 MB / 428.9 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002891/0.3, allocations: 0.95 MB / 429.9 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007322/0.3073, allocations: 5.315 MB / 435.2 MB, free: 6.961 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001938/0.3093, allocations: 0.8826 MB / 436.1 MB, free: 6.043 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005151/0.3145, allocations: 2.86 MB / 438.9 MB, free: 3.176 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006753/0.3213, allocations: 5.131 MB / 444.1 MB, free: 14.03 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001276/0.3226, allocations: 348 kB / 444.4 MB, free: 13.69 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001418/0.324, allocations: 395.9 kB / 444.8 MB, free: 13.3 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00192/0.326, allocations: 1.865 MB / 446.7 MB, free: 11.42 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00395/0.3299, allocations: 2.792 MB / 449.5 MB, free: 8.609 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008237/0.3382, allocations: 7.244 MB / 456.7 MB, free: 1.344 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.3382, allocations: 0 / 456.7 MB, free: 1.344 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3382, allocations: 4 kB / 456.7 MB, free: 1.34 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002952/0.3385, allocations: 0 / 456.7 MB, free: 1.34 MB / 366.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.01507/0.3536, allocations: 7.643 MB / 464.3 MB, free: 9.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.195e-05/0.3537, allocations: 11.97 kB / 464.4 MB, free: 9.578 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001607/0.3553, allocations: 0.8455 MB / 465.2 MB, free: 8.723 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005103/0.3604, allocations: 3.183 MB / 468.4 MB, free: 5.465 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001781/0.3606, allocations: 156.5 kB / 468.5 MB, free: 5.309 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005551/0.3612, allocations: 212.1 kB / 468.7 MB, free: 5.102 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005064/0.3662, allocations: 2.108 MB / 470.9 MB, free: 2.926 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.228e-05/0.3663, allocations: 7.906 kB / 470.9 MB, free: 2.918 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002464/0.3666, allocations: 84 kB / 470.9 MB, free: 2.836 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.616e-05/0.3667, allocations: 52 kB / 471 MB, free: 2.785 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004278/0.3709, allocations: 1.899 MB / 472.9 MB, free: 0.8828 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01736/0.3883, allocations: 8.872 MB / 481.8 MB, free: 7.805 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004099/0.3924, allocations: 2.329 MB / 484.1 MB, free: 5.406 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002776/0.3952, allocations: 1.42 MB / 485.5 MB, free: 3.973 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001409/0.3954, allocations: 38.28 kB / 485.6 MB, free: 3.938 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00227/0.3977, allocations: 1.159 MB / 486.7 MB, free: 2.738 MB / 398.1 MB Notification: Performance of pre-optimization done (n=242): time 6.583e-06/0.3977, allocations: 0 / 486.7 MB, free: 2.738 MB / 398.1 MB Notification: Performance of matching and sorting (n=367): time 0.06966/0.4674, allocations: 22.82 MB / 0.4976 GB, free: 11.57 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02866/0.4961, allocations: 13.61 MB / 0.5109 GB, free: 13.58 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01733/0.5134, allocations: 14.89 MB / 0.5254 GB, free: 14.75 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006901/0.5142, allocations: 85.7 kB / 0.5255 GB, free: 14.66 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003709/0.5179, allocations: 3.729 MB / 0.5291 GB, free: 10.93 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001581/0.5195, allocations: 1.213 MB / 0.5303 GB, free: 9.695 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009798/0.5205, allocations: 0.5195 MB / 0.5308 GB, free: 9.168 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.5206, allocations: 301.1 kB / 0.5311 GB, free: 8.871 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00255/0.5232, allocations: 1.248 MB / 0.5323 GB, free: 7.621 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002743/0.5259, allocations: 1.626 MB / 0.5339 GB, free: 5.914 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00534/0.5313, allocations: 2.996 MB / 0.5368 GB, free: 2.848 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.506e-05/0.5313, allocations: 4 kB / 0.5369 GB, free: 2.844 MB / 462.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.2097/0.741, allocations: 5.207 MB / 0.5419 GB, free: 126.9 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.766e-05/0.7411, allocations: 7.906 kB / 0.5419 GB, free: 126.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.655e-05/0.7411, allocations: 3.938 kB / 0.5419 GB, free: 126.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00495/0.7461, allocations: 1.386 MB / 0.5433 GB, free: 126.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002558/0.7486, allocations: 0.5354 MB / 0.5438 GB, free: 126.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02219/0.7708, allocations: 23.95 MB / 0.5672 GB, free: 110.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003227/0.7741, allocations: 136.1 kB / 0.5673 GB, free: 110.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003114/0.7744, allocations: 112.7 kB / 0.5675 GB, free: 110.3 MB / 462.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.002673/0.7771, allocations: 2.18 MB / 0.5696 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008881/0.778, allocations: 0.8118 MB / 0.5704 GB, free: 108.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009455/0.7875, allocations: 5.222 MB / 0.5755 GB, free: 103.1 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.291e-05/0.7875, allocations: 36 kB / 0.5755 GB, free: 103 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.358e-05/0.7875, allocations: 4 kB / 0.5755 GB, free: 103 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.141e-05/0.7876, allocations: 21.81 kB / 0.5755 GB, free: 103 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01611/0.8037, allocations: 11.06 MB / 0.5863 GB, free: 91.94 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.597e-05/0.8037, allocations: 0 / 0.5863 GB, free: 91.94 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002139/0.8059, allocations: 455.4 kB / 0.5868 GB, free: 91.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004768/0.8107, allocations: 1.338 MB / 0.5881 GB, free: 90.13 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002962/0.811, allocations: 75.97 kB / 0.5881 GB, free: 90.06 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01914/0.8301, allocations: 21.86 MB / 0.6095 GB, free: 67.21 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02082/0.851, allocations: 11.93 MB / 0.6211 GB, free: 55.08 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01241/0.8634, allocations: 6.951 MB / 0.6279 GB, free: 48.03 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001406/0.8649, allocations: 0.7515 MB / 0.6287 GB, free: 47.25 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008239/0.8657, allocations: 64 kB / 0.6287 GB, free: 47.19 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00212/0.8679, allocations: 111.9 kB / 0.6288 GB, free: 47.08 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006452/0.8685, allocations: 271.3 kB / 0.6291 GB, free: 46.81 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001738/0.8687, allocations: 95.97 kB / 0.6292 GB, free: 46.72 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.008981/0.8777, allocations: 11.12 MB / 0.64 GB, free: 35.64 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.8777, allocations: 0 / 0.64 GB, free: 35.64 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004137/0.8819, allocations: 1.078 MB / 0.6411 GB, free: 34.57 MB / 462.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.001218/0.8831, allocations: 0.503 MB / 0.6416 GB, free: 34.23 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006693/0.8898, allocations: 4.803 MB / 0.6463 GB, free: 29.31 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.8898, allocations: 0 / 0.6463 GB, free: 29.31 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00398/0.8938, allocations: 3.299 MB / 0.6495 GB, free: 25.9 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002904/0.8967, allocations: 0.547 MB / 0.65 GB, free: 25.36 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02148/0.9182, allocations: 18.25 MB / 0.6679 GB, free: 7.105 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003144/0.9214, allocations: 4.006 MB / 0.6718 GB, free: 3.051 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001112/0.9225, allocations: 199.4 kB / 0.672 GB, free: 2.855 MB / 462.1 MB Notification: Performance of SimCode: time 8.91e-07/0.9225, allocations: 0 / 0.672 GB, free: 2.855 MB / 462.1 MB Notification: Performance of Templates: time 1.327/2.249, allocations: 0.543 GB / 1.215 GB, free: 117.1 MB / 0.5294 GB 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