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.001147/0.001147, allocations: 111.6 kB / 17.28 MB, free: 6.199 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.001028/0.001028, allocations: 193.3 kB / 18.21 MB, free: 5.273 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.331/1.331, allocations: 222.9 MB / 241.9 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001672/0.001672, allocations: 47.61 kB / 300.8 MB, free: 6.203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1223, allocations: 49.45 MB / 350.2 MB, free: 4.754 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.0125/0.1349, allocations: 6.399 MB / 356.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005924/0.1409, allocations: 2.15 MB / 358.8 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001292/0.1422, allocations: 16 kB / 358.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001434/0.1437, allocations: 322.5 kB / 359.1 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002304/0.146, allocations: 421.4 kB / 359.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001666/0.1477, allocations: 409.4 kB / 359.9 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003111/0.1509, allocations: 1.534 MB / 361.5 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00129/0.1522, allocations: 0.5094 MB / 362 MB, free: 8.941 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001247/0.1535, allocations: 0.5723 MB / 362.6 MB, free: 8.367 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001336/0.1548, allocations: 0.6653 MB / 363.2 MB, free: 7.699 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005055/0.1553, allocations: 160 kB / 363.4 MB, free: 7.543 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006986/0.156, allocations: 188 kB / 363.6 MB, free: 7.359 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005578/0.1566, allocations: 323 kB / 363.9 MB, free: 7.043 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001315/0.1579, allocations: 0.6687 MB / 364.5 MB, free: 6.371 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002222/0.1602, allocations: 1.574 MB / 366.1 MB, free: 4.793 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.1602, allocations: 0 / 366.1 MB, free: 4.793 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.178e-06/0.1602, allocations: 0 / 366.1 MB, free: 4.793 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.971e-05/0.1603, allocations: 7.938 kB / 366.1 MB, free: 4.785 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.005085/0.1654, allocations: 1.538 MB / 367.7 MB, free: 3.191 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.692e-05/0.1654, allocations: 8.031 kB / 367.7 MB, free: 3.184 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004798/0.1659, allocations: 127.4 kB / 367.8 MB, free: 3.059 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002032/0.168, allocations: 0.7084 MB / 368.5 MB, free: 2.309 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002041/0.1682, allocations: 78.56 kB / 368.6 MB, free: 2.234 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002876/0.1685, allocations: 99.94 kB / 368.7 MB, free: 2.137 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003366/0.1719, allocations: 1.005 MB / 369.7 MB, free: 1.113 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.092e-05/0.172, allocations: 7.891 kB / 369.7 MB, free: 1.105 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001366/0.1721, allocations: 44 kB / 369.7 MB, free: 1.062 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.997e-05/0.1722, allocations: 24 kB / 369.8 MB, free: 1.039 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00317/0.1753, allocations: 0.8874 MB / 370.6 MB, free: 160 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1949/0.3703, allocations: 3.653 MB / 374.3 MB, free: 23.28 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002926/0.3733, allocations: 0.8951 MB / 375.2 MB, free: 23.05 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007311/0.374, allocations: 368.4 kB / 375.5 MB, free: 22.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.225e-05/0.3741, allocations: 13.72 kB / 375.6 MB, free: 22.91 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.492e-05/0.3741, allocations: 47.53 kB / 375.6 MB, free: 22.86 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 2.725e-06/0.3742, allocations: 0 / 375.6 MB, free: 22.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=67): time 0.004763/0.3789, allocations: 1.767 MB / 377.4 MB, free: 22.14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.322e-05/0.379, allocations: 85.81 kB / 377.5 MB, free: 22.04 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001233/0.3802, allocations: 0.9793 MB / 378.4 MB, free: 21.64 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.28e-05/0.3803, allocations: 40.58 kB / 378.5 MB, free: 21.6 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002871/0.3806, allocations: 0.5299 MB / 379 MB, free: 21.18 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001402/0.3807, allocations: 230.6 kB / 379.2 MB, free: 21 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002502/0.381, allocations: 153.4 kB / 379.4 MB, free: 20.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.754e-05/0.381, allocations: 343.5 kB / 379.7 MB, free: 20.6 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008807/0.3819, allocations: 344.8 kB / 380.1 MB, free: 20.49 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009751/0.3829, allocations: 0.5176 MB / 380.6 MB, free: 20.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001659/0.3846, allocations: 0.8306 MB / 381.4 MB, free: 19.69 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.3846, allocations: 0 / 381.4 MB, free: 19.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002382/0.387, allocations: 1.022 MB / 382.4 MB, free: 19.29 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.282e-05/0.387, allocations: 7.438 kB / 382.4 MB, free: 19.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.309e-05/0.387, allocations: 6.328 kB / 382.4 MB, free: 19.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.561e-05/0.3871, allocations: 9.25 kB / 382.4 MB, free: 19.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001301/0.3884, allocations: 285.7 kB / 382.7 MB, free: 19.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.052e-05/0.3884, allocations: 14.33 kB / 382.7 MB, free: 19.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009168/0.3893, allocations: 70.11 kB / 382.8 MB, free: 19.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.004e-05/0.3894, allocations: 40.67 kB / 382.8 MB, free: 19.23 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.0004152/0.3898, allocations: 284.9 kB / 383.1 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001631/0.39, allocations: 98.25 kB / 383.2 MB, free: 18.97 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009907/0.391, allocations: 392.4 kB / 383.6 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.037e-06/0.391, allocations: 6.906 kB / 383.6 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.09e-05/0.391, allocations: 1.375 kB / 383.6 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.157e-05/0.3911, allocations: 6.984 kB / 383.6 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00369/0.3948, allocations: 2.313 MB / 385.9 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-05/0.3948, allocations: 7.094 kB / 385.9 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008507/0.3956, allocations: 205.3 kB / 386.1 MB, free: 17.42 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.259e-05/0.3957, allocations: 10.16 kB / 386.2 MB, free: 17.42 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.518e-05/0.3957, allocations: 27.58 kB / 386.2 MB, free: 17.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.127e-05/0.3957, allocations: 17.31 kB / 386.2 MB, free: 17.4 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.003e-06/0.3958, allocations: 13.5 kB / 386.2 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001508/0.3973, allocations: 1.027 MB / 387.2 MB, free: 16.6 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002235/0.3975, allocations: 181.7 kB / 387.4 MB, free: 16.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001257/0.3976, allocations: 26.52 kB / 387.4 MB, free: 16.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006478/0.3983, allocations: 46.73 kB / 387.5 MB, free: 16.4 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001067/0.3984, allocations: 73.19 kB / 387.6 MB, free: 16.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.653e-05/0.3985, allocations: 30.2 kB / 387.6 MB, free: 16.35 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008147/0.3993, allocations: 0.6769 MB / 388.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 7.62e-07/0.3993, allocations: 0 / 388.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008711/0.4002, allocations: 211.7 kB / 388.5 MB, free: 15.96 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.0008075/0.401, allocations: 377.8 kB / 388.8 MB, free: 15.8 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001877/0.4029, allocations: 0.7939 MB / 389.6 MB, free: 15.43 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.865e-06/0.4029, allocations: 1.25 kB / 389.6 MB, free: 15.43 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000712/0.4036, allocations: 365.3 kB / 390 MB, free: 15.26 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001281/0.4049, allocations: 205.1 kB / 390.2 MB, free: 15.14 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003009/0.4079, allocations: 2.36 MB / 392.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004184/0.4084, allocations: 1.015 MB / 393.6 MB, free: 12.61 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003213/0.4087, allocations: 85.39 kB / 393.6 MB, free: 12.58 MB / 302.1 MB Notification: Performance of SimCode: time 6.11e-07/0.4087, allocations: 0 / 393.6 MB, free: 12.58 MB / 302.1 MB Notification: Performance of Templates: time 0.01548/0.4242, allocations: 12.91 MB / 406.6 MB, free: 1.211 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ForceCurrentBehaviour/ForceCurrentBehaviour.csv","/var/lib/jenkins1/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