Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cActuator.flange.f|pmActuator.flange.f|pmActuator.coil.Phi|pmActuator.coil.L_stat",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour") translateModel(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cActuator.flange.f|pmActuator.flange.f|pmActuator.coil.Phi|pmActuator.coil.L_stat",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001528/0.001528, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.926/1.926, allocations: 205.2 MB / 219.4 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00107/0.00107, allocations: 78.66 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.103e-05/3.105e-05, allocations: 4 kB / 321.5 MB, free: 17.82 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.109, allocations: 47.57 MB / 369.1 MB, free: 2.191 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4259/0.5349, allocations: 88.86 MB / 458 MB, free: 4.418 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003189/0.5353, allocations: 95.16 kB / 458 MB, free: 4.367 MB / 330.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Magnetic/FluxTubes.mo:1363:11-1363:91:writable] Warning: connect(p, p) connects the same connector instance! The connect equation will be ignored. Notification: Performance of FrontEnd - DAE generated: time 0.1003/0.6356, allocations: 22.09 MB / 480.1 MB, free: 60 kB / 346.7 MB Notification: Performance of FrontEnd: time 5.551e-06/0.6357, allocations: 0 / 480.1 MB, free: 60 kB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001042/0.6359, allocations: 31.94 kB / 480.2 MB, free: 28 kB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.004915/0.6408, allocations: 1.216 MB / 481.4 MB, free: 14.76 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.503e-05/0.6409, allocations: 12.02 kB / 481.4 MB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006859/0.6416, allocations: 135.1 kB / 481.5 MB, free: 14.62 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002112/0.6437, allocations: 0.653 MB / 482.2 MB, free: 13.92 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002249/0.644, allocations: 77.98 kB / 482.3 MB, free: 13.85 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003041/0.6443, allocations: 99.91 kB / 482.4 MB, free: 13.75 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003033/0.6474, allocations: 0.9312 MB / 483.3 MB, free: 12.8 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.465e-05/0.6475, allocations: 4 kB / 483.3 MB, free: 12.8 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001586/0.6477, allocations: 40 kB / 483.3 MB, free: 12.76 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.463e-05/0.6477, allocations: 28 kB / 483.4 MB, free: 12.73 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002687/0.6504, allocations: 0.7706 MB / 484.1 MB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01114/0.6616, allocations: 3.86 MB / 488 MB, free: 7.895 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003708/0.6654, allocations: 0.8347 MB / 488.8 MB, free: 7.043 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001255/0.6667, allocations: 366.8 kB / 489.2 MB, free: 6.68 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.946e-05/0.6668, allocations: 24.52 kB / 489.2 MB, free: 6.656 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.936e-05/0.6669, allocations: 39.12 kB / 489.2 MB, free: 6.609 MB / 362.7 MB Notification: Performance of pre-optimization done (n=68): time 3.887e-06/0.6669, allocations: 0 / 489.2 MB, free: 6.609 MB / 362.7 MB Notification: Performance of matching and sorting (n=86): time 0.006682/0.6736, allocations: 1.653 MB / 490.9 MB, free: 4.945 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.871e-05/0.6737, allocations: 89.5 kB / 491 MB, free: 4.84 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001974/0.6757, allocations: 0.8129 MB / 491.8 MB, free: 4.02 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002061/0.676, allocations: 41.7 kB / 491.8 MB, free: 3.973 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004706/0.6765, allocations: 0.5054 MB / 492.3 MB, free: 3.461 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004048/0.6769, allocations: 295.7 kB / 492.6 MB, free: 3.168 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001/0.677, allocations: 16 kB / 492.6 MB, free: 3.152 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.6772, allocations: 346.8 kB / 493 MB, free: 2.805 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009989/0.6782, allocations: 302 kB / 493.3 MB, free: 2.512 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001075/0.6793, allocations: 457.9 kB / 493.7 MB, free: 2.012 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001018/0.6803, allocations: 342.9 kB / 494.1 MB, free: 1.676 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.129e-06/0.6803, allocations: 0 / 494.1 MB, free: 1.676 MB / 362.7 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002564/0.6829, allocations: 0.8618 MB / 494.9 MB, free: 0.8047 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.506e-05/0.683, allocations: 8 kB / 494.9 MB, free: 0.7969 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.56e-05/0.683, allocations: 15.91 kB / 494.9 MB, free: 0.7812 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.589e-05/0.6831, allocations: 8 kB / 495 MB, free: 0.7734 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002946/0.686, allocations: 351.5 kB / 495.3 MB, free: 440 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.286e-05/0.6862, allocations: 8 kB / 495.3 MB, free: 432 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001986/0.6882, allocations: 119.9 kB / 495.4 MB, free: 312 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001914/0.6884, allocations: 39.92 kB / 495.5 MB, free: 272 kB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (cActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (121): * Single equations (assignments): 121 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003166/0.6887, allocations: 164.3 kB / 495.6 MB, free: 104 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003172/0.6891, allocations: 98.88 kB / 495.7 MB, free: 4 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001242/0.6903, allocations: 370.4 kB / 496.1 MB, free: 15.63 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.655e-05/0.6904, allocations: 8 kB / 496.1 MB, free: 15.62 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.889e-06/0.6904, allocations: 0 / 496.1 MB, free: 15.62 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.645e-05/0.6904, allocations: 3.984 kB / 496.1 MB, free: 15.62 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008022/0.6984, allocations: 2.888 MB / 499 MB, free: 12.53 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.501e-05/0.6985, allocations: 19.92 kB / 499 MB, free: 12.51 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002098/0.7006, allocations: 272.1 kB / 499.3 MB, free: 12.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.471e-05/0.7007, allocations: 20 kB / 499.3 MB, free: 12.23 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001218/0.7009, allocations: 24 kB / 499.3 MB, free: 12.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.093e-05/0.7009, allocations: 27.88 kB / 499.3 MB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-05/0.7009, allocations: 19.88 kB / 499.4 MB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003004/0.7039, allocations: 1.683 MB / 0.4893 GB, free: 10.03 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005561/0.7046, allocations: 199.9 kB / 0.4895 GB, free: 9.816 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002369/0.7048, allocations: 31.98 kB / 0.4895 GB, free: 9.785 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001447/0.7063, allocations: 75.95 kB / 0.4896 GB, free: 9.711 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002556/0.7066, allocations: 99.58 kB / 0.4897 GB, free: 9.613 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001107/0.7067, allocations: 43.98 kB / 0.4897 GB, free: 9.57 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0015/0.7082, allocations: 0.6202 MB / 0.4903 GB, free: 8.957 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.21e-07/0.7082, allocations: 0 / 0.4903 GB, free: 8.957 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001746/0.71, allocations: 236 kB / 0.4906 GB, free: 8.727 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 2 (cActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001273/0.7113, allocations: 383.1 kB / 0.4909 GB, free: 8.352 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00239/0.7137, allocations: 0.7201 MB / 0.4916 GB, free: 7.633 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.916e-05/0.7138, allocations: 8.188 kB / 0.4916 GB, free: 7.625 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001282/0.7151, allocations: 406.1 kB / 0.492 GB, free: 7.23 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001981/0.7171, allocations: 187.4 kB / 0.4922 GB, free: 7.047 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005218/0.7224, allocations: 1.614 MB / 0.4938 GB, free: 5.254 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009688/0.7234, allocations: 1.053 MB / 0.4948 GB, free: 4.172 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007647/0.7242, allocations: 91.39 kB / 0.4949 GB, free: 4.082 MB / 378.7 MB Notification: Performance of SimCode: time 1.443e-06/0.7242, allocations: 0 / 0.4949 GB, free: 4.082 MB / 378.7 MB Notification: Performance of Templates: time 0.03451/0.7588, allocations: 13.19 MB / 0.5078 GB, free: 6.84 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ForceCurrentBehaviour/ForceCurrentBehaviour.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches