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.001536/0.001536, allocations: 115.7 kB / 18.45 MB, free: 4.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002067/0.002067, allocations: 213.9 kB / 19.4 MB, free: 3.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001132/0.001132, allocations: 56.14 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2877/0.2889, allocations: 50.55 MB / 409.9 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.0114/0.3003, allocations: 11.39 MB / 421.3 MB, free: 6.168 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007277/0.3076, allocations: 3.861 MB / 425.2 MB, free: 2.297 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002108/0.3098, allocations: 39.88 kB / 425.2 MB, free: 2.258 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00772/0.3175, allocations: 8.148 MB / 433.4 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00642/0.324, allocations: 4.71 MB / 438.1 MB, free: 5.371 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002578/0.3266, allocations: 0.9127 MB / 439 MB, free: 4.457 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006395/0.333, allocations: 5.42 MB / 444.4 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001566/0.3346, allocations: 0.9023 MB / 445.3 MB, free: 14.09 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004021/0.3386, allocations: 2.907 MB / 448.2 MB, free: 11.18 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005742/0.3444, allocations: 5.166 MB / 453.4 MB, free: 5.992 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001092/0.3455, allocations: 360 kB / 453.7 MB, free: 5.641 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001303/0.3468, allocations: 400 kB / 454.1 MB, free: 5.25 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001706/0.3485, allocations: 1.888 MB / 456 MB, free: 3.348 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00333/0.3519, allocations: 2.842 MB / 458.8 MB, free: 496 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00725/0.3592, allocations: 7.388 MB / 466.2 MB, free: 9.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.3592, allocations: 0 / 466.2 MB, free: 9.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3592, allocations: 0 / 466.2 MB, free: 9.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002459/0.3594, allocations: 3.938 kB / 466.2 MB, free: 9.066 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.0132/0.3727, allocations: 7.729 MB / 474 MB, free: 1.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.3727, allocations: 8.031 kB / 474 MB, free: 1.223 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001864/0.3746, allocations: 0.9077 MB / 474.9 MB, free: 312 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004278/0.3789, allocations: 3.234 MB / 478.1 MB, free: 13 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001176/0.379, allocations: 160.2 kB / 478.3 MB, free: 12.84 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003059/0.3793, allocations: 203.9 kB / 478.5 MB, free: 12.64 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003773/0.3831, allocations: 2.1 MB / 480.6 MB, free: 10.47 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.511e-05/0.3832, allocations: 0 / 480.6 MB, free: 10.47 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001878/0.3834, allocations: 88 kB / 480.7 MB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.735e-05/0.3834, allocations: 48 kB / 480.7 MB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003578/0.387, allocations: 1.848 MB / 482.6 MB, free: 8.48 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01618/0.4032, allocations: 8.961 MB / 491.5 MB, free: 15.31 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004198/0.4074, allocations: 2.321 MB / 493.8 MB, free: 12.92 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002749/0.4102, allocations: 1.387 MB / 495.2 MB, free: 11.53 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001452/0.4104, allocations: 38.28 kB / 495.3 MB, free: 11.49 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002151/0.4125, allocations: 1.136 MB / 496.4 MB, free: 10.32 MB / 414.1 MB Notification: Performance of pre-optimization done (n=246): time 6.643e-06/0.4126, allocations: 0 / 496.4 MB, free: 10.32 MB / 414.1 MB Notification: Performance of matching and sorting (n=371): time 0.0678/0.4804, allocations: 22.45 MB / 0.5067 GB, free: 3.523 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03077/0.5112, allocations: 13.7 MB / 0.5201 GB, free: 5.438 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01904/0.5303, allocations: 15.04 MB / 0.5348 GB, free: 6.391 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005736/0.5309, allocations: 85.7 kB / 0.5348 GB, free: 6.301 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003826/0.5347, allocations: 3.777 MB / 0.5385 GB, free: 2.516 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001512/0.5363, allocations: 1.228 MB / 0.5397 GB, free: 1.27 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001756/0.538, allocations: 0.5196 MB / 0.5402 GB, free: 0.7422 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.79e-05/0.5381, allocations: 301.1 kB / 0.5405 GB, free: 456 kB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1982/0.7364, allocations: 1.224 MB / 0.5417 GB, free: 121.7 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002952/0.7394, allocations: 1.608 MB / 0.5433 GB, free: 121.4 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00441/0.7438, allocations: 2.967 MB / 0.5462 GB, free: 121.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.046e-05/0.7438, allocations: 0 / 0.5462 GB, free: 121.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.009832/0.7537, allocations: 5.187 MB / 0.5513 GB, free: 120.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.359e-05/0.7537, allocations: 12.61 kB / 0.5513 GB, free: 120.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.689e-05/0.7537, allocations: 3 kB / 0.5513 GB, free: 120.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005031/0.7588, allocations: 1.408 MB / 0.5526 GB, free: 119.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002464/0.7612, allocations: 0.5305 MB / 0.5532 GB, free: 119.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02241/0.7837, allocations: 24.05 MB / 0.5766 GB, free: 98.07 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003037/0.7867, allocations: 107.9 kB / 0.5768 GB, free: 97.98 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002895/0.787, allocations: 114 kB / 0.5769 GB, free: 97.88 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.002445/0.7895, allocations: 2.204 MB / 0.579 GB, free: 95.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007273/0.7902, allocations: 0.8287 MB / 0.5798 GB, free: 95.34 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009084/0.7993, allocations: 5.19 MB / 0.5849 GB, free: 90.11 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.029e-05/0.7994, allocations: 36 kB / 0.5849 GB, free: 90.08 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.382e-05/0.7994, allocations: 8.141 kB / 0.5849 GB, free: 90.07 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-05/0.7994, allocations: 23.91 kB / 0.585 GB, free: 90.05 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01575/0.8152, allocations: 11.08 MB / 0.5958 GB, free: 78.91 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.391e-05/0.8152, allocations: 8 kB / 0.5958 GB, free: 78.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00215/0.8174, allocations: 451.5 kB / 0.5962 GB, free: 78.46 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004793/0.8222, allocations: 1.346 MB / 0.5975 GB, free: 77.09 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002835/0.8225, allocations: 75.91 kB / 0.5976 GB, free: 77.01 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01922/0.8417, allocations: 21.9 MB / 0.619 GB, free: 53.86 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02149/0.8632, allocations: 12.02 MB / 0.6307 GB, free: 41.56 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01161/0.8749, allocations: 6.9 MB / 0.6375 GB, free: 34.56 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001179/0.8761, allocations: 0.7677 MB / 0.6382 GB, free: 33.77 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007177/0.8768, allocations: 70.53 kB / 0.6383 GB, free: 33.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00206/0.8789, allocations: 95.95 kB / 0.6384 GB, free: 33.61 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006154/0.8795, allocations: 267.3 kB / 0.6386 GB, free: 33.34 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001704/0.8797, allocations: 99.97 kB / 0.6387 GB, free: 33.25 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.008704/0.8884, allocations: 11.22 MB / 0.6497 GB, free: 22.05 MB / 462.1 MB Notification: Performance of sort global known variables: time 6.92e-07/0.8884, allocations: 0 / 0.6497 GB, free: 22.05 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003801/0.8922, allocations: 1.094 MB / 0.6508 GB, free: 20.95 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.001193/0.8935, allocations: 0.5032 MB / 0.6512 GB, free: 20.61 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006421/0.8999, allocations: 4.753 MB / 0.6559 GB, free: 15.74 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.8999, allocations: 3.938 kB / 0.6559 GB, free: 15.73 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004097/0.904, allocations: 3.265 MB / 0.6591 GB, free: 12.35 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002958/0.907, allocations: 0.5655 MB / 0.6596 GB, free: 11.78 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02095/0.928, allocations: 18.34 MB / 0.6775 GB, free: 9.426 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003815/0.9318, allocations: 4.046 MB / 0.6815 GB, free: 5.336 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001183/0.933, allocations: 199.4 kB / 0.6817 GB, free: 5.141 MB / 478.1 MB Notification: Performance of SimCode: time 5.31e-07/0.933, allocations: 0 / 0.6817 GB, free: 5.141 MB / 478.1 MB Notification: Performance of Templates: time 1.407/2.34, allocations: 0.5479 GB / 1.23 GB, free: 115.6 MB / 0.545 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/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_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches