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.001484/0.001484, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001645/0.001645, allocations: 197.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.34/1.34, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001062/0.001062, allocations: 59.91 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2763/0.2773, allocations: 50.55 MB / 409.2 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01166/0.289, allocations: 11.39 MB / 420.6 MB, free: 6.176 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007607/0.2967, allocations: 3.858 MB / 424.5 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002167/0.2989, allocations: 39.88 kB / 424.5 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006901/0.3058, allocations: 8.147 MB / 432.7 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006918/0.3128, allocations: 4.737 MB / 437.4 MB, free: 5.355 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002736/0.3155, allocations: 0.9244 MB / 438.3 MB, free: 4.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007299/0.3228, allocations: 5.409 MB / 443.7 MB, free: 15 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001456/0.3243, allocations: 0.8984 MB / 444.6 MB, free: 14.07 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004223/0.3286, allocations: 2.915 MB / 447.6 MB, free: 11.15 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005565/0.3341, allocations: 5.166 MB / 452.7 MB, free: 5.969 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006385/0.3348, allocations: 360 kB / 453.1 MB, free: 5.617 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008706/0.3357, allocations: 404 kB / 453.5 MB, free: 5.223 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001428/0.3371, allocations: 1.888 MB / 455.4 MB, free: 3.32 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002723/0.3398, allocations: 2.838 MB / 458.2 MB, free: 472 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006286/0.3461, allocations: 7.384 MB / 465.6 MB, free: 9.051 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.3462, allocations: 0 / 465.6 MB, free: 9.051 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.3462, allocations: 0 / 465.6 MB, free: 9.051 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001161/0.3463, allocations: 4 kB / 465.6 MB, free: 9.047 MB / 382.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.01077/0.3571, allocations: 7.733 MB / 473.3 MB, free: 1.207 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.3571, allocations: 8.031 kB / 473.3 MB, free: 1.199 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001518/0.3586, allocations: 0.9077 MB / 474.2 MB, free: 288 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003883/0.3625, allocations: 3.234 MB / 477.5 MB, free: 12.97 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001255/0.3627, allocations: 156.2 kB / 477.6 MB, free: 12.82 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002791/0.363, allocations: 215.9 kB / 477.8 MB, free: 12.61 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003622/0.3666, allocations: 2.089 MB / 479.9 MB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.226e-05/0.3667, allocations: 4 kB / 479.9 MB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001793/0.3669, allocations: 87.98 kB / 480 MB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.859e-05/0.3669, allocations: 52 kB / 480.1 MB, free: 10.31 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003428/0.3703, allocations: 1.845 MB / 481.9 MB, free: 8.457 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01405/0.3844, allocations: 8.953 MB / 490.9 MB, free: 15.3 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003633/0.3881, allocations: 2.328 MB / 493.2 MB, free: 12.91 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002499/0.3906, allocations: 1.381 MB / 494.6 MB, free: 11.51 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001417/0.3908, allocations: 42.28 kB / 494.6 MB, free: 11.47 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001841/0.3926, allocations: 1.132 MB / 495.7 MB, free: 10.3 MB / 414.1 MB Notification: Performance of pre-optimization done (n=246): time 4.158e-06/0.3926, allocations: 0 / 495.7 MB, free: 10.3 MB / 414.1 MB Notification: Performance of matching and sorting (n=371): time 0.06207/0.4547, allocations: 22.45 MB / 0.506 GB, free: 3.504 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02913/0.4839, allocations: 13.69 MB / 0.5194 GB, free: 5.426 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01579/0.4997, allocations: 15.05 MB / 0.5341 GB, free: 6.375 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006204/0.5003, allocations: 85.7 kB / 0.5342 GB, free: 6.285 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003255/0.5036, allocations: 3.773 MB / 0.5379 GB, free: 2.504 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00128/0.5049, allocations: 1.232 MB / 0.5391 GB, free: 1.254 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009669/0.5059, allocations: 0.5157 MB / 0.5396 GB, free: 0.7305 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.397e-05/0.5059, allocations: 301.1 kB / 0.5399 GB, free: 444 kB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2418/0.7478, allocations: 1.23 MB / 0.5411 GB, free: 120.5 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003406/0.7512, allocations: 1.606 MB / 0.5426 GB, free: 120.3 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00465/0.7559, allocations: 2.965 MB / 0.5455 GB, free: 120 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.054e-05/0.7559, allocations: 7.688 kB / 0.5455 GB, free: 120 MB / 462.1 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.01035/0.7663, allocations: 5.189 MB / 0.5506 GB, free: 119 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.684e-05/0.7664, allocations: 15.03 kB / 0.5506 GB, free: 119 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.891e-05/0.7664, allocations: 5.594 kB / 0.5506 GB, free: 119 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005255/0.7716, allocations: 1.403 MB / 0.552 GB, free: 118.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002639/0.7743, allocations: 0.5305 MB / 0.5525 GB, free: 118.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02329/0.7976, allocations: 24.03 MB / 0.576 GB, free: 96.64 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003436/0.8011, allocations: 117.3 kB / 0.5761 GB, free: 96.55 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003559/0.8015, allocations: 112.2 kB / 0.5762 GB, free: 96.45 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 (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.00256/0.804, allocations: 2.211 MB / 0.5784 GB, free: 94.37 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000792/0.8048, allocations: 0.8286 MB / 0.5792 GB, free: 93.91 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009435/0.8143, allocations: 5.194 MB / 0.5842 GB, free: 88.67 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.342e-05/0.8143, allocations: 36 kB / 0.5843 GB, free: 88.63 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.619e-05/0.8143, allocations: 4 kB / 0.5843 GB, free: 88.63 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.782e-05/0.8144, allocations: 27.61 kB / 0.5843 GB, free: 88.61 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0163/0.8307, allocations: 11.09 MB / 0.5951 GB, free: 77.46 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-05/0.8307, allocations: 0 / 0.5951 GB, free: 77.46 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002177/0.8329, allocations: 451.5 kB / 0.5956 GB, free: 77.02 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005013/0.8379, allocations: 1.349 MB / 0.5969 GB, free: 75.65 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003621/0.8383, allocations: 75.92 kB / 0.597 GB, free: 75.57 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02009/0.8584, allocations: 21.91 MB / 0.6184 GB, free: 52.42 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02149/0.88, allocations: 12.02 MB / 0.6301 GB, free: 40.12 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01225/0.8923, allocations: 6.9 MB / 0.6368 GB, free: 33.12 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001363/0.8937, allocations: 0.7654 MB / 0.6376 GB, free: 32.33 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000548/0.8942, allocations: 68.61 kB / 0.6376 GB, free: 32.26 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001955/0.8962, allocations: 95.95 kB / 0.6377 GB, free: 32.17 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006318/0.8968, allocations: 275.3 kB / 0.638 GB, free: 31.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001816/0.897, allocations: 95.97 kB / 0.6381 GB, free: 31.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.009369/0.9064, allocations: 11.22 MB / 0.649 GB, free: 20.61 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.9064, allocations: 0 / 0.649 GB, free: 20.61 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004506/0.9109, allocations: 1.098 MB / 0.6501 GB, free: 19.51 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 (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.001165/0.9121, allocations: 0.4971 MB / 0.6506 GB, free: 19.16 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006871/0.919, allocations: 4.754 MB / 0.6552 GB, free: 14.29 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.071e-06/0.919, allocations: 3.938 kB / 0.6552 GB, free: 14.29 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004072/0.9231, allocations: 3.265 MB / 0.6584 GB, free: 10.9 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002973/0.9261, allocations: 0.5735 MB / 0.659 GB, free: 10.33 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02236/0.9485, allocations: 17.99 MB / 0.6766 GB, free: 8.344 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004168/0.9527, allocations: 4.046 MB / 0.6805 GB, free: 4.254 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001771/0.9545, allocations: 325.4 kB / 0.6808 GB, free: 3.93 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006418/0.9551, allocations: 171.4 kB / 0.681 GB, free: 3.762 MB / 478.1 MB Notification: Performance of SimCode: time 6.22e-07/0.9551, allocations: 4 kB / 0.681 GB, free: 3.758 MB / 478.1 MB Notification: Performance of Templates: time 0.3956/1.351, allocations: 67.59 MB / 0.747 GB, free: 166.1 MB / 0.5137 GB 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.0.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