Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.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.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_4.0.0_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_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001463/0.001463, allocations: 106.4 kB / 16.92 MB, free: 5.777 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.001741/0.001741, allocations: 191.3 kB / 17.85 MB, free: 5.168 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.296/1.296, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001878/0.001878, allocations: 51.92 kB / 300.6 MB, free: 5.867 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.105, allocations: 49.44 MB / 350.1 MB, free: 4.414 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.008404/0.1135, allocations: 6.395 MB / 356.5 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003811/0.1173, allocations: 2.189 MB / 358.6 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008043/0.1182, allocations: 23.94 kB / 358.7 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009711/0.1191, allocations: 353.8 kB / 359 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001377/0.1206, allocations: 480.7 kB / 359.5 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001011/0.1216, allocations: 455.3 kB / 359.9 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001747/0.1233, allocations: 1.522 MB / 361.5 MB, free: 8.965 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006701/0.124, allocations: 0.5172 MB / 362 MB, free: 8.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006547/0.1247, allocations: 0.5683 MB / 362.5 MB, free: 7.859 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006454/0.1253, allocations: 0.6654 MB / 363.2 MB, free: 7.191 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001783/0.1255, allocations: 156 kB / 363.4 MB, free: 7.039 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002839/0.1258, allocations: 199.9 kB / 363.6 MB, free: 6.844 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003023/0.1261, allocations: 319 kB / 363.9 MB, free: 6.531 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006128/0.1268, allocations: 0.6687 MB / 364.5 MB, free: 5.859 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001613/0.1284, allocations: 1.92 MB / 366.5 MB, free: 3.934 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.1284, allocations: 4 kB / 366.5 MB, free: 3.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1284, allocations: 0 / 366.5 MB, free: 3.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.472e-05/0.1284, allocations: 0 / 366.5 MB, free: 3.93 MB / 302.1 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.003038/0.1315, allocations: 1.537 MB / 368 MB, free: 2.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.1315, allocations: 12.03 kB / 368 MB, free: 2.328 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002444/0.1318, allocations: 127.4 kB / 368.1 MB, free: 2.203 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001228/0.133, allocations: 0.7045 MB / 368.8 MB, free: 1.457 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001196/0.1331, allocations: 78.56 kB / 368.9 MB, free: 1.383 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000195/0.1333, allocations: 95.94 kB / 369 MB, free: 1.289 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001975/0.1353, allocations: 1.013 MB / 370 MB, free: 264 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.865e-05/0.1354, allocations: 7.906 kB / 370 MB, free: 256 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.26e-05/0.1355, allocations: 40 kB / 370.1 MB, free: 216 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.608e-05/0.1355, allocations: 24 kB / 370.1 MB, free: 192 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1459/0.2814, allocations: 0.8843 MB / 371 MB, free: 24.94 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005719/0.2872, allocations: 3.65 MB / 374.6 MB, free: 23.06 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002919/0.2901, allocations: 0.8952 MB / 375.5 MB, free: 22.84 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007701/0.2909, allocations: 369.5 kB / 375.9 MB, free: 22.7 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.493e-05/0.291, allocations: 9.281 kB / 375.9 MB, free: 22.7 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.568e-05/0.291, allocations: 47.09 kB / 375.9 MB, free: 22.65 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 2.304e-06/0.291, allocations: 0 / 375.9 MB, free: 22.65 MB / 302.1 MB Notification: Performance of matching and sorting (n=67): time 0.004786/0.2958, allocations: 1.783 MB / 377.7 MB, free: 21.92 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.239e-05/0.2958, allocations: 83.52 kB / 377.8 MB, free: 21.82 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001268/0.2971, allocations: 0.9798 MB / 378.8 MB, free: 21.43 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.12e-05/0.2972, allocations: 40.78 kB / 378.8 MB, free: 21.38 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002868/0.2975, allocations: 0.5267 MB / 379.3 MB, free: 20.96 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001297/0.2976, allocations: 227 kB / 379.6 MB, free: 20.79 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000241/0.2978, allocations: 156.8 kB / 379.7 MB, free: 20.71 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.926e-05/0.2979, allocations: 344 kB / 380.1 MB, free: 20.38 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009566/0.2989, allocations: 344.4 kB / 380.4 MB, free: 20.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001018/0.2999, allocations: 0.518 MB / 380.9 MB, free: 19.94 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001767/0.3017, allocations: 0.8296 MB / 381.7 MB, free: 19.47 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.109e-06/0.3017, allocations: 1.188 kB / 381.7 MB, free: 19.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002326/0.304, allocations: 1.018 MB / 382.8 MB, free: 19.08 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/0.3041, allocations: 9.719 kB / 382.8 MB, free: 19.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/0.3041, allocations: 6.25 kB / 382.8 MB, free: 19.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.606e-05/0.3041, allocations: 8.969 kB / 382.8 MB, free: 19.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001472/0.3056, allocations: 290.5 kB / 383.1 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.986e-05/0.3056, allocations: 15.19 kB / 383.1 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008387/0.3065, allocations: 69.45 kB / 383.1 MB, free: 19.03 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.75e-05/0.3066, allocations: 37.48 kB / 383.2 MB, free: 19.02 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (108): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000345/0.3069, allocations: 288.9 kB / 383.5 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00017/0.3071, allocations: 98 kB / 383.6 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009232/0.308, allocations: 384.8 kB / 383.9 MB, free: 18.59 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.397e-06/0.308, allocations: 6.938 kB / 383.9 MB, free: 18.59 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.299e-05/0.3081, allocations: 8.75 kB / 384 MB, free: 18.59 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.528e-06/0.3081, allocations: 3.234 kB / 384 MB, free: 18.59 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003547/0.3116, allocations: 2.308 MB / 386.3 MB, free: 17.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.598e-06/0.3117, allocations: 6.812 kB / 386.3 MB, free: 17.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008515/0.3125, allocations: 206.3 kB / 386.5 MB, free: 17.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.383e-05/0.3125, allocations: 10.3 kB / 386.5 MB, free: 17.11 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.464e-05/0.3126, allocations: 27.48 kB / 386.5 MB, free: 17.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.558e-06/0.3126, allocations: 9.562 kB / 386.5 MB, free: 17.1 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.246e-06/0.3126, allocations: 16.2 kB / 386.5 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00153/0.3142, allocations: 1.023 MB / 387.6 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001832/0.3143, allocations: 189.2 kB / 387.7 MB, free: 16.12 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001453/0.3145, allocations: 18.78 kB / 387.8 MB, free: 16.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00064/0.3151, allocations: 50.97 kB / 387.8 MB, free: 16.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.3153, allocations: 71.91 kB / 387.9 MB, free: 16.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.655e-05/0.3153, allocations: 25.19 kB / 387.9 MB, free: 16.05 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008882/0.3162, allocations: 0.6822 MB / 388.6 MB, free: 15.68 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3162, allocations: 5.594 kB / 388.6 MB, free: 15.68 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008122/0.317, allocations: 205.2 kB / 388.8 MB, free: 15.66 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008603/0.3179, allocations: 390.8 kB / 389.2 MB, free: 15.49 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001841/0.3198, allocations: 0.7861 MB / 390 MB, free: 15.12 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/0.3198, allocations: 1.312 kB / 390 MB, free: 15.12 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007406/0.3205, allocations: 375 kB / 390.3 MB, free: 14.94 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001191/0.3217, allocations: 205.2 kB / 390.5 MB, free: 14.82 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00303/0.3248, allocations: 1.923 MB / 392.5 MB, free: 13.56 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004667/0.3253, allocations: 1.023 MB / 393.5 MB, free: 12.71 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005702/0.3258, allocations: 120.8 kB / 393.6 MB, free: 12.65 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002124/0.3261, allocations: 71.31 kB / 393.7 MB, free: 12.64 MB / 302.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3261, allocations: 0 / 393.7 MB, free: 12.64 MB / 302.1 MB Notification: Performance of Templates: time 0.01557/0.3416, allocations: 10.57 MB / 404.2 MB, free: 3.117 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ForceCurrentBehaviour/ForceCurrentBehaviour.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches