Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001482/0.001482, allocations: 193.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.302/1.302, allocations: 226.6 MB / 244.3 MB, free: 8.305 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007759/0.0007759, allocations: 98.16 kB / 296.4 MB, free: 6.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002502/0.0002503, allocations: 11.94 kB / 356.2 MB, free: 11.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2203/0.2206, allocations: 51.29 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.004686/0.2253, allocations: 5.614 MB / 413.1 MB, free: 22.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003071/0.2284, allocations: 2.229 MB / 415.3 MB, free: 19.96 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008309/0.2293, allocations: 19.94 kB / 415.4 MB, free: 19.94 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008351/0.2301, allocations: 306.5 kB / 415.7 MB, free: 19.64 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001137/0.2313, allocations: 437.3 kB / 416.1 MB, free: 19.21 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008395/0.2321, allocations: 283.2 kB / 416.4 MB, free: 18.94 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001502/0.2336, allocations: 1.366 MB / 417.7 MB, free: 17.57 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004684/0.2341, allocations: 382.1 kB / 418.1 MB, free: 17.18 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004482/0.2346, allocations: 454.2 kB / 418.5 MB, free: 16.73 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004241/0.235, allocations: 0.5407 MB / 419.1 MB, free: 16.19 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.117e-05/0.2351, allocations: 60 kB / 419.1 MB, free: 16.13 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002028/0.2353, allocations: 87.98 kB / 419.2 MB, free: 16.04 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001244/0.2354, allocations: 215 kB / 419.4 MB, free: 15.83 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001347/0.2356, allocations: 257.1 kB / 419.7 MB, free: 15.57 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000798/0.2364, allocations: 1.524 MB / 421.2 MB, free: 14.05 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.2364, allocations: 0 / 421.2 MB, free: 14.05 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2364, allocations: 3.938 kB / 421.2 MB, free: 14.04 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.233e-05/0.2364, allocations: 3.938 kB / 421.2 MB, free: 14.04 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.002294/0.2387, allocations: 1.402 MB / 422.6 MB, free: 12.59 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.34e-05/0.2388, allocations: 8.031 kB / 422.6 MB, free: 12.58 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004316/0.2392, allocations: 158.4 kB / 422.8 MB, free: 12.42 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008323/0.24, allocations: 0.6765 MB / 423.5 MB, free: 11.7 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001021/0.2402, allocations: 81.94 kB / 423.5 MB, free: 11.62 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001068/0.2403, allocations: 107.9 kB / 423.7 MB, free: 11.52 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001619/0.2419, allocations: 1.029 MB / 424.7 MB, free: 10.48 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.739e-05/0.2419, allocations: 4 kB / 424.7 MB, free: 10.47 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.279e-05/0.242, allocations: 40 kB / 424.7 MB, free: 10.43 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.625e-05/0.242, allocations: 20 kB / 424.7 MB, free: 10.41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002549/0.2446, allocations: 0.946 MB / 425.7 MB, free: 9.469 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003921/0.2485, allocations: 3.684 MB / 429.4 MB, free: 5.602 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002701/0.2512, allocations: 1.091 MB / 430.5 MB, free: 4.492 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006834/0.2519, allocations: 399.5 kB / 430.9 MB, free: 4.098 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.876e-05/0.252, allocations: 12.16 kB / 430.9 MB, free: 4.086 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.675e-05/0.252, allocations: 46.7 kB / 430.9 MB, free: 4.031 MB / 298.7 MB Notification: Performance of pre-optimization done (n=58): time 2.424e-06/0.252, allocations: 0 / 430.9 MB, free: 4.031 MB / 298.7 MB Notification: Performance of matching and sorting (n=67): time 0.004232/0.2563, allocations: 1.966 MB / 432.9 MB, free: 2.059 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.618e-05/0.2563, allocations: 85.11 kB / 433 MB, free: 1.957 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001068/0.2574, allocations: 0.986 MB / 433.9 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.747e-05/0.2574, allocations: 37.7 kB / 434 MB, free: 0.9023 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002223/0.2577, allocations: 0.526 MB / 434.5 MB, free: 376 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.766e-05/0.2578, allocations: 232.7 kB / 434.7 MB, free: 140 kB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.678e-05/0.2578, allocations: 16 kB / 434.8 MB, free: 124 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.2579, allocations: 341.9 kB / 435.1 MB, free: 15.78 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009427/0.2589, allocations: 381.8 kB / 435.5 MB, free: 15.41 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009984/0.2599, allocations: 0.5577 MB / 436 MB, free: 14.78 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009407/0.2608, allocations: 421.9 kB / 436.4 MB, free: 14.37 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.349e-06/0.2608, allocations: 4 kB / 436.4 MB, free: 14.36 MB / 314.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002244/0.2631, allocations: 1.084 MB / 437.5 MB, free: 13.27 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.2631, allocations: 8 kB / 437.5 MB, free: 13.26 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.231e-05/0.2631, allocations: 11.98 kB / 437.5 MB, free: 13.25 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.999e-05/0.2632, allocations: 12 kB / 437.5 MB, free: 13.24 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001328/0.2645, allocations: 323.5 kB / 437.9 MB, free: 12.92 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.441e-05/0.2645, allocations: 12 kB / 437.9 MB, free: 12.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007587/0.2653, allocations: 95.86 kB / 438 MB, free: 12.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.843e-05/0.2654, allocations: 35.98 kB / 438 MB, free: 12.78 MB / 314.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.000459/0.2658, allocations: 281.6 kB / 438.3 MB, free: 12.5 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001484/0.266, allocations: 98.78 kB / 438.4 MB, free: 12.4 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009376/0.2669, allocations: 426.1 kB / 438.8 MB, free: 11.97 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.378e-06/0.2669, allocations: 11.98 kB / 438.8 MB, free: 11.96 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.267, allocations: 4 kB / 438.8 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/0.267, allocations: 0 / 438.8 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003606/0.2706, allocations: 2.354 MB / 441.2 MB, free: 9.461 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.416e-06/0.2706, allocations: 8.062 kB / 441.2 MB, free: 9.453 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008718/0.2715, allocations: 235.7 kB / 441.4 MB, free: 9.223 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.353e-05/0.2715, allocations: 12 kB / 441.4 MB, free: 9.211 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.521e-05/0.2716, allocations: 23.98 kB / 441.4 MB, free: 9.188 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.107e-05/0.2716, allocations: 15.89 kB / 441.5 MB, free: 9.172 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.285e-06/0.2716, allocations: 11.94 kB / 441.5 MB, free: 9.16 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001574/0.2732, allocations: 1.072 MB / 442.5 MB, free: 7.984 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001953/0.2734, allocations: 191.8 kB / 442.7 MB, free: 7.777 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001024/0.2735, allocations: 19.98 kB / 442.7 MB, free: 7.758 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006124/0.2741, allocations: 63.95 kB / 442.8 MB, free: 7.695 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.789e-05/0.2742, allocations: 59.78 kB / 442.9 MB, free: 7.637 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.705e-05/0.2743, allocations: 39.98 kB / 442.9 MB, free: 7.598 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008274/0.2751, allocations: 0.6749 MB / 443.6 MB, free: 6.91 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2751, allocations: 0 / 443.6 MB, free: 6.91 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007027/0.2758, allocations: 212 kB / 443.8 MB, free: 6.703 MB / 314.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.0007388/0.2766, allocations: 393.9 kB / 444.2 MB, free: 6.43 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001772/0.2783, allocations: 0.8038 MB / 445 MB, free: 5.629 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.2784, allocations: 0 / 445 MB, free: 5.629 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007998/0.2792, allocations: 397.8 kB / 445.4 MB, free: 5.242 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001063/0.2802, allocations: 179.9 kB / 445.5 MB, free: 5.07 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003204/0.2834, allocations: 2.324 MB / 447.9 MB, free: 2.625 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005767/0.284, allocations: 1.026 MB / 448.9 MB, free: 1.57 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000265/0.2843, allocations: 75.41 kB / 449 MB, free: 1.496 MB / 314.7 MB Notification: Performance of SimCode: time 4.41e-07/0.2843, allocations: 0 / 449 MB, free: 1.496 MB / 314.7 MB Notification: Performance of Templates: time 0.01644/0.3008, allocations: 12.86 MB / 461.8 MB, free: 4.691 MB / 330.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches