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.001972/0.001972, allocations: 185.9 kB / 17.42 MB, free: 4.375 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.772/2.772, allocations: 205.4 MB / 223.6 MB, free: 9.012 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.001278/0.001278, allocations: 93.48 kB / 271.9 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000616/0.0006164, allocations: 15.98 kB / 328.2 MB, free: 15.92 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.506/0.5067, allocations: 47.57 MB / 375.7 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2078/0.7146, allocations: 89.05 MB / 464.8 MB, free: 7.559 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005499/0.7153, allocations: 87.95 kB / 464.9 MB, free: 7.473 MB / 346.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.1008/0.8161, allocations: 22.12 MB / 487 MB, free: 1.273 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.459e-06/0.8162, allocations: 0 / 487 MB, free: 1.273 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001006/0.8164, allocations: 24 kB / 487 MB, free: 1.25 MB / 362.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.005641/0.822, allocations: 1.338 MB / 488.3 MB, free: 15.86 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.006e-05/0.8221, allocations: 8.031 kB / 488.3 MB, free: 15.85 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006835/0.8228, allocations: 131.3 kB / 488.5 MB, free: 15.72 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002296/0.8251, allocations: 0.685 MB / 489.2 MB, free: 14.99 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000235/0.8254, allocations: 78.55 kB / 489.2 MB, free: 14.91 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003528/0.8258, allocations: 96.38 kB / 489.3 MB, free: 14.82 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00396/0.8298, allocations: 1.041 MB / 490.4 MB, free: 13.77 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.794e-05/0.8299, allocations: 15.83 kB / 490.4 MB, free: 13.76 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001623/0.83, allocations: 40 kB / 490.4 MB, free: 13.72 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-05/0.8301, allocations: 24 kB / 490.5 MB, free: 13.7 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004184/0.8343, allocations: 0.9733 MB / 491.4 MB, free: 12.72 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01341/0.8478, allocations: 3.871 MB / 495.3 MB, free: 8.652 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004392/0.8522, allocations: 0.9587 MB / 496.3 MB, free: 7.68 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001791/0.8541, allocations: 461.1 kB / 496.7 MB, free: 7.227 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.549e-05/0.8542, allocations: 12.55 kB / 496.7 MB, free: 7.215 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.998e-05/0.8543, allocations: 43.12 kB / 496.8 MB, free: 7.164 MB / 378.7 MB Notification: Performance of pre-optimization done (n=68): time 5.891e-06/0.8543, allocations: 0 / 496.8 MB, free: 7.164 MB / 378.7 MB Notification: Performance of matching and sorting (n=86): time 0.01182/0.8662, allocations: 2.311 MB / 499.1 MB, free: 4.844 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001595/0.8665, allocations: 85.55 kB / 499.2 MB, free: 4.742 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002571/0.8691, allocations: 0.9229 MB / 0.4884 GB, free: 3.809 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002405/0.8693, allocations: 37.7 kB / 0.4884 GB, free: 3.766 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007527/0.8701, allocations: 0.4953 MB / 0.4889 GB, free: 3.262 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000542/0.8707, allocations: 295.7 kB / 0.4892 GB, free: 2.969 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001026/0.8708, allocations: 20 kB / 0.4892 GB, free: 2.949 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002393/0.871, allocations: 345.9 kB / 0.4895 GB, free: 2.605 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001967/0.873, allocations: 425.8 kB / 0.4899 GB, free: 2.188 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002218/0.8753, allocations: 0.5837 MB / 0.4905 GB, free: 1.551 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004086/0.8794, allocations: 0.9672 MB / 0.4914 GB, free: 0.5312 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.675e-06/0.8794, allocations: 0 / 0.4914 GB, free: 0.5312 MB / 378.7 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.3316/1.211, allocations: 1.175 MB / 0.4926 GB, free: 100 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.08e-05/1.211, allocations: 6.719 kB / 0.4926 GB, free: 100 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.669e-05/1.211, allocations: 4.094 kB / 0.4926 GB, free: 100 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.49e-05/1.211, allocations: 8.688 kB / 0.4926 GB, free: 100 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002905/1.214, allocations: 348.8 kB / 0.4929 GB, free: 100 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.136e-05/1.214, allocations: 14.41 kB / 0.4929 GB, free: 100 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001789/1.216, allocations: 114.4 kB / 0.493 GB, free: 100 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000175/1.216, allocations: 40.23 kB / 0.4931 GB, free: 100 MB / 378.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 () * Number of clocked 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.001218/1.218, allocations: 292 kB / 0.4934 GB, free: 99.93 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005772/1.218, allocations: 101.2 kB / 0.4935 GB, free: 99.93 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002474/1.221, allocations: 492.9 kB / 0.4939 GB, free: 99.87 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.035e-05/1.221, allocations: 9.25 kB / 0.4939 GB, free: 99.87 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.724e-05/1.221, allocations: 4.406 kB / 0.4939 GB, free: 99.87 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.741e-05/1.221, allocations: 3.938 kB / 0.4939 GB, free: 99.87 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009874/1.231, allocations: 3.036 MB / 0.4969 GB, free: 99.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-05/1.231, allocations: 14.16 kB / 0.4969 GB, free: 99.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001723/1.233, allocations: 271.9 kB / 0.4972 GB, free: 99.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.722e-05/1.233, allocations: 14.31 kB / 0.4972 GB, free: 99.14 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001042/1.233, allocations: 28.66 kB / 0.4972 GB, free: 99.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.594e-05/1.233, allocations: 24.64 kB / 0.4973 GB, free: 99.14 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.67e-05/1.233, allocations: 18 kB / 0.4973 GB, free: 99.14 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003806/1.237, allocations: 1.295 MB / 0.4985 GB, free: 98.55 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005742/1.237, allocations: 212.6 kB / 0.4987 GB, free: 98.41 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002427/1.238, allocations: 33.55 kB / 0.4988 GB, free: 98.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001324/1.239, allocations: 79.14 kB / 0.4988 GB, free: 98.41 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002509/1.239, allocations: 92.64 kB / 0.4989 GB, free: 98.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001119/1.239, allocations: 39.94 kB / 0.499 GB, free: 98.4 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001659/1.241, allocations: 0.6402 MB / 0.4996 GB, free: 98.31 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.51e-07/1.241, allocations: 0 / 0.4996 GB, free: 98.31 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002005/1.243, allocations: 234.5 kB / 0.4998 GB, free: 98.31 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 () * Number of clocked 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.001412/1.244, allocations: 423.2 kB / 0.5002 GB, free: 98.09 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004041/1.248, allocations: 0.9194 MB / 0.5011 GB, free: 98.07 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.731e-05/1.248, allocations: 4.719 kB / 0.5011 GB, free: 98.07 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001767/1.25, allocations: 485 kB / 0.5016 GB, free: 98.02 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004466/1.255, allocations: 261.7 kB / 0.5018 GB, free: 98.01 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006138/1.261, allocations: 2.545 MB / 0.5043 GB, free: 96.57 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008576/1.262, allocations: 1.033 MB / 0.5053 GB, free: 95.86 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007972/1.263, allocations: 95.94 kB / 0.5054 GB, free: 95.85 MB / 378.7 MB Notification: Performance of SimCode: time 2.385e-06/1.263, allocations: 0 / 0.5054 GB, free: 95.85 MB / 378.7 MB Notification: Performance of Templates: time 0.03328/1.296, allocations: 13.42 MB / 0.5185 GB, free: 93.78 MB / 378.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