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.0008086/0.0008086, allocations: 84.92 kB / 16.31 MB, free: 6.453 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.0009062/0.0009063, allocations: 175.8 kB / 17.21 MB, free: 6.328 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.344/1.344, allocations: 223.2 MB / 241.2 MB, free: 364 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002241/0.0002241, allocations: 4 kB / 300.8 MB, free: 6.48 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0903/0.09054, allocations: 50.43 MB / 351.2 MB, free: 4.043 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.00575/0.09633, allocations: 5.583 MB / 356.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002923/0.09927, allocations: 2.069 MB / 358.9 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003656/0.09966, allocations: 19.94 kB / 358.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006054/0.1003, allocations: 302.5 kB / 359.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000741/0.101, allocations: 417.4 kB / 359.6 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006604/0.1017, allocations: 271.6 kB / 359.9 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001268/0.103, allocations: 1.37 MB / 361.3 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005358/0.1035, allocations: 370.4 kB / 361.6 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004628/0.104, allocations: 450.2 kB / 362.1 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000587/0.1046, allocations: 0.5368 MB / 362.6 MB, free: 8.629 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001213/0.1047, allocations: 64 kB / 362.7 MB, free: 8.566 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001988/0.1049, allocations: 87.92 kB / 362.7 MB, free: 8.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000192/0.1051, allocations: 211.1 kB / 362.9 MB, free: 8.273 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000198/0.1053, allocations: 253.1 kB / 363.2 MB, free: 8.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001145/0.1065, allocations: 1.531 MB / 364.7 MB, free: 6.484 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1065, allocations: 0 / 364.7 MB, free: 6.484 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1065, allocations: 0 / 364.7 MB, free: 6.484 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.364e-05/0.1065, allocations: 0 / 364.7 MB, free: 6.484 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.002524/0.1091, allocations: 1.394 MB / 366.1 MB, free: 5.039 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.1091, allocations: 8.031 kB / 366.1 MB, free: 5.031 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001865/0.1093, allocations: 126.5 kB / 366.3 MB, free: 4.906 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001025/0.1103, allocations: 0.6725 MB / 366.9 MB, free: 4.191 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001215/0.1105, allocations: 85.98 kB / 367 MB, free: 4.105 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001555/0.1106, allocations: 92 kB / 367.1 MB, free: 4.016 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001932/0.1126, allocations: 1.033 MB / 368.1 MB, free: 2.973 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.961e-05/0.1126, allocations: 7.953 kB / 368.1 MB, free: 2.965 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.593e-05/0.1127, allocations: 36 kB / 368.2 MB, free: 2.93 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.936e-05/0.1127, allocations: 28 kB / 368.2 MB, free: 2.902 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001988/0.1147, allocations: 0.9381 MB / 369.1 MB, free: 1.961 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1736/0.2883, allocations: 3.684 MB / 372.8 MB, free: 23.32 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002988/0.2913, allocations: 1.097 MB / 373.9 MB, free: 23.28 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007762/0.2921, allocations: 399 kB / 374.3 MB, free: 23.2 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.118e-05/0.2922, allocations: 15.09 kB / 374.3 MB, free: 23.2 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.948e-05/0.2922, allocations: 38.86 kB / 374.4 MB, free: 23.16 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 2.534e-06/0.2922, allocations: 0 / 374.4 MB, free: 23.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=67): time 0.004601/0.2968, allocations: 1.961 MB / 376.3 MB, free: 22.42 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.297e-05/0.2969, allocations: 88.64 kB / 376.4 MB, free: 22.32 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001207/0.2981, allocations: 0.974 MB / 377.4 MB, free: 21.92 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.157e-05/0.2981, allocations: 41.67 kB / 377.4 MB, free: 21.88 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003145/0.2984, allocations: 0.5258 MB / 378 MB, free: 21.46 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001347/0.2986, allocations: 230.9 kB / 378.2 MB, free: 21.28 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.545e-05/0.2986, allocations: 16.12 kB / 378.2 MB, free: 21.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.509e-05/0.2987, allocations: 340.1 kB / 378.5 MB, free: 20.95 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009035/0.2996, allocations: 381.1 kB / 378.9 MB, free: 20.84 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009283/0.3006, allocations: 0.5566 MB / 379.5 MB, free: 20.5 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009028/0.3015, allocations: 416.4 kB / 379.9 MB, free: 20.35 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.3015, allocations: 0.9062 kB / 379.9 MB, free: 20.35 MB / 302.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002214/0.3037, allocations: 1.1 MB / 381 MB, free: 19.94 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.3037, allocations: 7.344 kB / 381 MB, free: 19.94 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.3038, allocations: 5.938 kB / 381 MB, free: 19.94 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.183e-05/0.3038, allocations: 11.16 kB / 381 MB, free: 19.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001284/0.3051, allocations: 320.4 kB / 381.3 MB, free: 19.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.305e-05/0.3051, allocations: 15.59 kB / 381.3 MB, free: 19.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008202/0.3059, allocations: 92.55 kB / 381.4 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.084e-05/0.306, allocations: 35.03 kB / 381.4 MB, free: 19.88 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_xMax.contact,cActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.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 initialization (108): * Single equations (assignments): 108 * 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.0004451/0.3065, allocations: 283 kB / 381.7 MB, free: 19.67 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000156/0.3066, allocations: 106.1 kB / 381.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001029/0.3077, allocations: 425 kB / 382.2 MB, free: 19.44 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.07e-05/0.3077, allocations: 8.203 kB / 382.2 MB, free: 19.44 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.28e-05/0.3077, allocations: 3.062 kB / 382.2 MB, free: 19.44 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.112e-05/0.3077, allocations: 3.469 kB / 382.2 MB, free: 19.44 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003779/0.3115, allocations: 2.345 MB / 384.6 MB, free: 18.1 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.055e-05/0.3115, allocations: 6.688 kB / 384.6 MB, free: 18.1 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008706/0.3124, allocations: 234.8 kB / 384.8 MB, free: 18.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.671e-05/0.3124, allocations: 11.12 kB / 384.8 MB, free: 18.08 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.472e-05/0.3125, allocations: 25.56 kB / 384.9 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.215e-05/0.3125, allocations: 19.16 kB / 384.9 MB, free: 18.06 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.872e-06/0.3125, allocations: 10.25 kB / 384.9 MB, free: 18.06 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001523/0.314, allocations: 1.064 MB / 386 MB, free: 17.34 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002119/0.3143, allocations: 186.9 kB / 386.1 MB, free: 17.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001206/0.3144, allocations: 25.31 kB / 386.2 MB, free: 17.17 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006116/0.315, allocations: 62.47 kB / 386.2 MB, free: 17.16 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001103/0.3151, allocations: 69.66 kB / 386.3 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.855e-05/0.3152, allocations: 31.66 kB / 386.3 MB, free: 17.13 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008613/0.3161, allocations: 0.6746 MB / 387 MB, free: 16.85 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3161, allocations: 0 / 387 MB, free: 16.85 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000877/0.317, allocations: 208.2 kB / 387.2 MB, free: 16.83 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 (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.000776/0.3177, allocations: 389.3 kB / 387.6 MB, free: 16.65 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001562/0.3193, allocations: 0.8146 MB / 388.4 MB, free: 16.39 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.3193, allocations: 4.188 kB / 388.4 MB, free: 16.39 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007409/0.3201, allocations: 383.6 kB / 388.8 MB, free: 16.25 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001097/0.3212, allocations: 187.8 kB / 389 MB, free: 16.19 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002782/0.324, allocations: 2.275 MB / 391.2 MB, free: 14.63 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004225/0.3244, allocations: 1.023 MB / 392.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005447/0.325, allocations: 126.9 kB / 392.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002/0.3252, allocations: 67.78 kB / 392.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3252, allocations: 0 / 392.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of Templates: time 0.01405/0.3392, allocations: 9.552 MB / 402 MB, free: 5.438 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