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.001487/0.001487, allocations: 180.3 kB / 16.41 MB, free: 5.707 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.392/1.392, allocations: 205.4 MB / 222.5 MB, free: 9.039 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.0008233/0.0008233, allocations: 101.5 kB / 270.9 MB, free: 8.348 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002852/0.0002852, allocations: 8 kB / 327 MB, free: 188 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1966/0.1969, allocations: 47.57 MB / 374.6 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.004781/0.2018, allocations: 5.513 MB / 380.1 MB, free: 41.1 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002492/0.2043, allocations: 2.028 MB / 382.1 MB, free: 39.43 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000363/0.2047, allocations: 19.56 kB / 382.1 MB, free: 39.42 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005188/0.2052, allocations: 313.5 kB / 382.4 MB, free: 39.21 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006359/0.2058, allocations: 402.5 kB / 382.8 MB, free: 38.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005278/0.2064, allocations: 270.5 kB / 383.1 MB, free: 38.7 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001036/0.2074, allocations: 1.367 MB / 384.4 MB, free: 37.86 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004537/0.2079, allocations: 378.4 kB / 384.8 MB, free: 37.64 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004448/0.2084, allocations: 448.7 kB / 385.3 MB, free: 37.41 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005082/0.2089, allocations: 0.5395 MB / 385.8 MB, free: 37.05 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001214/0.209, allocations: 65.12 kB / 385.9 MB, free: 37.05 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002187/0.2092, allocations: 80.03 kB / 385.9 MB, free: 37.05 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001374/0.2094, allocations: 213.2 kB / 386.1 MB, free: 36.88 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000177/0.2096, allocations: 251.7 kB / 386.4 MB, free: 36.73 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009085/0.2105, allocations: 1.525 MB / 387.9 MB, free: 35.44 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.2105, allocations: 0 / 387.9 MB, free: 35.44 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2105, allocations: 0 / 387.9 MB, free: 35.44 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.599e-05/0.2105, allocations: 0 / 387.9 MB, free: 35.44 MB / 298.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.002344/0.2129, allocations: 1.387 MB / 389.3 MB, free: 34 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.13e-05/0.2129, allocations: 8.031 kB / 389.3 MB, free: 34 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001559/0.2131, allocations: 138.4 kB / 389.4 MB, free: 33.86 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008534/0.2139, allocations: 0.6843 MB / 390.1 MB, free: 33.13 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001044/0.214, allocations: 74 kB / 390.2 MB, free: 33.06 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001115/0.2142, allocations: 99.91 kB / 390.3 MB, free: 32.96 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001668/0.2158, allocations: 1.04 MB / 391.3 MB, free: 31.91 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.592e-05/0.2159, allocations: 0 / 391.3 MB, free: 31.91 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.752e-05/0.216, allocations: 36 kB / 391.4 MB, free: 31.88 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.596e-05/0.216, allocations: 27.98 kB / 391.4 MB, free: 31.85 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001817/0.2178, allocations: 0.946 MB / 392.3 MB, free: 30.9 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004127/0.2219, allocations: 3.677 MB / 396 MB, free: 27.05 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002807/0.2248, allocations: 1.095 MB / 397.1 MB, free: 25.93 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007033/0.2255, allocations: 400.2 kB / 397.5 MB, free: 25.54 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.088e-05/0.2255, allocations: 12.17 kB / 397.5 MB, free: 25.53 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.9e-05/0.2256, allocations: 43.34 kB / 397.6 MB, free: 25.48 MB / 298.7 MB Notification: Performance of pre-optimization done (n=58): time 1.914e-06/0.2256, allocations: 3.938 kB / 397.6 MB, free: 25.47 MB / 298.7 MB Notification: Performance of matching and sorting (n=67): time 0.004277/0.2298, allocations: 1.969 MB / 399.5 MB, free: 23.5 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.587e-05/0.2299, allocations: 89.09 kB / 399.6 MB, free: 23.39 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009597/0.2308, allocations: 0.978 MB / 400.6 MB, free: 22.4 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.812e-05/0.2309, allocations: 37.7 kB / 400.6 MB, free: 22.36 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002313/0.2311, allocations: 0.5221 MB / 401.2 MB, free: 21.83 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001273/0.2313, allocations: 228.7 kB / 401.4 MB, free: 21.6 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.071e-05/0.2313, allocations: 20 kB / 401.4 MB, free: 21.58 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.777e-05/0.2314, allocations: 337.9 kB / 401.7 MB, free: 21.25 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008355/0.2322, allocations: 377.8 kB / 402.1 MB, free: 20.88 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008725/0.2331, allocations: 0.5612 MB / 402.7 MB, free: 20.24 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008554/0.234, allocations: 435.5 kB / 403.1 MB, free: 19.82 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.234, allocations: 3.938 kB / 403.1 MB, free: 19.81 MB / 298.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002148/0.2361, allocations: 1.084 MB / 404.2 MB, free: 18.72 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.2362, allocations: 8 kB / 404.2 MB, free: 18.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.799e-06/0.2362, allocations: 11.98 kB / 404.2 MB, free: 18.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.843e-05/0.2362, allocations: 8 kB / 404.2 MB, free: 18.69 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001172/0.2374, allocations: 323.6 kB / 404.5 MB, free: 18.38 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.287e-05/0.2374, allocations: 15.94 kB / 404.5 MB, free: 18.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007954/0.2382, allocations: 91.92 kB / 404.6 MB, free: 18.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.297e-05/0.2383, allocations: 35.98 kB / 404.7 MB, free: 18.23 MB / 298.7 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.000335/0.2386, allocations: 289.6 kB / 404.9 MB, free: 17.94 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001254/0.2387, allocations: 98.78 kB / 405 MB, free: 17.84 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008935/0.2396, allocations: 422.3 kB / 405.5 MB, free: 17.42 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.2397, allocations: 8 kB / 405.5 MB, free: 17.41 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.2397, allocations: 3.953 kB / 405.5 MB, free: 17.41 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.2397, allocations: 3.984 kB / 405.5 MB, free: 17.41 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003083/0.2428, allocations: 2.348 MB / 407.8 MB, free: 14.92 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-06/0.2428, allocations: 8 kB / 407.8 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008573/0.2437, allocations: 236.3 kB / 408.1 MB, free: 14.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.809e-06/0.2437, allocations: 12 kB / 408.1 MB, free: 14.67 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.921e-05/0.2437, allocations: 23.98 kB / 408.1 MB, free: 14.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.945e-06/0.2437, allocations: 15.94 kB / 408.1 MB, free: 14.63 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.2438, allocations: 4 kB / 408.1 MB, free: 14.62 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001379/0.2451, allocations: 1.068 MB / 409.2 MB, free: 13.45 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000146/0.2453, allocations: 195.8 kB / 409.4 MB, free: 13.24 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001031/0.2454, allocations: 20 kB / 409.4 MB, free: 13.22 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006206/0.246, allocations: 59.95 kB / 409.4 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.472e-05/0.2461, allocations: 71.75 kB / 409.5 MB, free: 13.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.765e-05/0.2462, allocations: 28 kB / 409.5 MB, free: 13.07 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006596/0.2468, allocations: 0.6747 MB / 410.2 MB, free: 12.39 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2468, allocations: 0 / 410.2 MB, free: 12.39 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006575/0.2475, allocations: 211.9 kB / 410.4 MB, free: 12.19 MB / 298.7 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.0006614/0.2482, allocations: 389.3 kB / 410.8 MB, free: 11.83 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00157/0.2498, allocations: 0.8116 MB / 411.6 MB, free: 11.02 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.2498, allocations: 0 / 411.6 MB, free: 11.02 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006902/0.2505, allocations: 385.8 kB / 412 MB, free: 10.64 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001026/0.2515, allocations: 187.3 kB / 412.2 MB, free: 10.46 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002486/0.254, allocations: 2.304 MB / 414.5 MB, free: 8.035 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003469/0.2544, allocations: 1.018 MB / 415.5 MB, free: 6.984 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000247/0.2546, allocations: 79.41 kB / 415.6 MB, free: 6.906 MB / 298.7 MB Notification: Performance of SimCode: time 3.31e-07/0.2546, allocations: 4 kB / 415.6 MB, free: 6.902 MB / 298.7 MB Notification: Performance of Templates: time 0.01373/0.2684, allocations: 12.78 MB / 428.4 MB, free: 10.1 MB / 314.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/jenkins/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