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: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001022/0.001022, allocations: 202.8 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.238/1.238, allocations: 226.5 MB / 244.7 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007735/0.0007734, allocations: 103.8 kB / 296.7 MB, free: 6.914 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002284/0.0002286, allocations: 8 kB / 356.9 MB, free: 10.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1881/0.1884, allocations: 51.28 MB / 408.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.004679/0.1931, allocations: 5.616 MB / 413.7 MB, free: 22.07 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00316/0.1963, allocations: 2.23 MB / 416 MB, free: 19.85 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008999/0.1972, allocations: 19.94 kB / 416 MB, free: 19.83 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008504/0.1981, allocations: 298.5 kB / 416.3 MB, free: 19.54 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001357/0.1995, allocations: 449.3 kB / 416.7 MB, free: 19.1 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009189/0.2004, allocations: 288.8 kB / 417 MB, free: 18.82 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001594/0.202, allocations: 1.378 MB / 418.4 MB, free: 17.44 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006499/0.2027, allocations: 452.4 kB / 418.8 MB, free: 16.98 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005962/0.2033, allocations: 454.2 kB / 419.3 MB, free: 16.53 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006588/0.204, allocations: 0.5407 MB / 419.8 MB, free: 15.99 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001948/0.2042, allocations: 60 kB / 419.9 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003535/0.2045, allocations: 99.97 kB / 420 MB, free: 15.83 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001619/0.2047, allocations: 215 kB / 420.2 MB, free: 15.62 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004168/0.2051, allocations: 0.5576 MB / 420.7 MB, free: 15.05 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009427/0.2061, allocations: 1.527 MB / 422.3 MB, free: 13.52 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.2061, allocations: 0 / 422.3 MB, free: 13.52 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2061, allocations: 0 / 422.3 MB, free: 13.52 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.686e-05/0.2061, allocations: 0 / 422.3 MB, free: 13.52 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.002284/0.2084, allocations: 1.387 MB / 423.6 MB, free: 12.08 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/0.2085, allocations: 8.031 kB / 423.7 MB, free: 12.07 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001383/0.2086, allocations: 148.2 kB / 423.8 MB, free: 11.92 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000433/0.2091, allocations: 155.3 kB / 424 MB, free: 11.77 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008638/0.2099, allocations: 0.7045 MB / 424.7 MB, free: 11.02 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001033/0.2101, allocations: 90.3 kB / 424.7 MB, free: 10.94 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001083/0.2102, allocations: 95.98 kB / 424.8 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001677/0.2119, allocations: 1.033 MB / 425.9 MB, free: 9.793 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.877e-05/0.2119, allocations: 7.844 kB / 425.9 MB, free: 9.785 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.51e-05/0.212, allocations: 40 kB / 425.9 MB, free: 9.746 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.403e-05/0.212, allocations: 28 kB / 425.9 MB, free: 9.719 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001773/0.2138, allocations: 0.9381 MB / 426.9 MB, free: 8.785 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004251/0.218, allocations: 3.683 MB / 430.6 MB, free: 4.914 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002908/0.221, allocations: 1.093 MB / 431.7 MB, free: 3.805 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007159/0.2217, allocations: 406.9 kB / 432.1 MB, free: 3.402 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.047e-05/0.2218, allocations: 8 kB / 432.1 MB, free: 3.395 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.444e-05/0.2218, allocations: 42.56 kB / 432.1 MB, free: 3.344 MB / 298.7 MB Notification: Performance of pre-optimization done (n=58): time 3.376e-06/0.2218, allocations: 0 / 432.1 MB, free: 3.344 MB / 298.7 MB Notification: Performance of matching and sorting (n=67): time 0.004462/0.2263, allocations: 1.981 MB / 434.1 MB, free: 1.355 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.92e-05/0.2263, allocations: 81.11 kB / 434.2 MB, free: 1.258 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000953/0.2273, allocations: 0.9822 MB / 435.1 MB, free: 256 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.573e-05/0.2273, allocations: 37.7 kB / 435.2 MB, free: 212 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003204/0.2277, allocations: 0.526 MB / 435.7 MB, free: 15.67 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001575/0.2278, allocations: 232.7 kB / 435.9 MB, free: 15.44 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.604e-05/0.2279, allocations: 20 kB / 436 MB, free: 15.42 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.228, allocations: 337.9 kB / 436.3 MB, free: 15.09 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009316/0.2289, allocations: 381.8 kB / 436.7 MB, free: 14.71 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001027/0.23, allocations: 0.5538 MB / 437.2 MB, free: 14.08 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001826/0.2318, allocations: 0.9033 MB / 438.1 MB, free: 13.11 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.2318, allocations: 0 / 438.1 MB, free: 13.11 MB / 314.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002321/0.2342, allocations: 1.095 MB / 439.2 MB, free: 12 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.2342, allocations: 8 kB / 439.2 MB, free: 12 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.948e-06/0.2342, allocations: 4 kB / 439.2 MB, free: 11.99 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.099e-05/0.2342, allocations: 11.98 kB / 439.2 MB, free: 11.98 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001232/0.2355, allocations: 327.5 kB / 439.6 MB, free: 11.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.523e-05/0.2355, allocations: 8 kB / 439.6 MB, free: 11.65 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008169/0.2363, allocations: 87.92 kB / 439.6 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.305e-05/0.2364, allocations: 39.98 kB / 439.7 MB, free: 11.53 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.0004186/0.2368, allocations: 285.6 kB / 440 MB, free: 11.24 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001453/0.237, allocations: 102.7 kB / 440.1 MB, free: 11.14 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009601/0.2379, allocations: 430.1 kB / 440.5 MB, free: 10.71 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.284e-06/0.238, allocations: 4 kB / 440.5 MB, free: 10.71 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.238, allocations: 7.984 kB / 440.5 MB, free: 10.7 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-06/0.238, allocations: 4 kB / 440.5 MB, free: 10.7 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003714/0.2417, allocations: 2.345 MB / 442.8 MB, free: 8.211 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.057e-06/0.2417, allocations: 8 kB / 442.9 MB, free: 8.203 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008762/0.2426, allocations: 231.7 kB / 443.1 MB, free: 7.977 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.143e-05/0.2426, allocations: 12 kB / 443.1 MB, free: 7.965 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.204e-05/0.2427, allocations: 27.98 kB / 443.1 MB, free: 7.938 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.284e-05/0.2427, allocations: 15.88 kB / 443.1 MB, free: 7.922 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.745e-06/0.2427, allocations: 11.94 kB / 443.1 MB, free: 7.91 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001667/0.2444, allocations: 1.072 MB / 444.2 MB, free: 6.738 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002528/0.2447, allocations: 191.8 kB / 444.4 MB, free: 6.531 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001048/0.2448, allocations: 19.98 kB / 444.4 MB, free: 6.512 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006202/0.2454, allocations: 67.89 kB / 444.5 MB, free: 6.445 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001146/0.2455, allocations: 55.81 kB / 444.5 MB, free: 6.391 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.84e-05/0.2456, allocations: 35.98 kB / 444.6 MB, free: 6.355 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008689/0.2465, allocations: 0.6827 MB / 445.3 MB, free: 5.66 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2465, allocations: 4 kB / 445.3 MB, free: 5.656 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000744/0.2472, allocations: 208 kB / 445.5 MB, free: 5.453 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.002622/0.2499, allocations: 1.876 MB / 447.3 MB, free: 3.59 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001893/0.2518, allocations: 0.8239 MB / 448.2 MB, free: 2.766 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.021e-06/0.2518, allocations: 4 kB / 448.2 MB, free: 2.762 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008541/0.2526, allocations: 385.3 kB / 448.6 MB, free: 2.387 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001908/0.2546, allocations: 262.5 kB / 448.8 MB, free: 2.133 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01081/0.2654, allocations: 6.202 MB / 455 MB, free: 11.56 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000582/0.266, allocations: 1.023 MB / 456 MB, free: 10.5 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006375/0.2666, allocations: 407.3 kB / 456.4 MB, free: 10.11 MB / 330.7 MB Notification: Performance of SimCode: time 6.31e-07/0.2666, allocations: 0 / 456.4 MB, free: 10.11 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.54/3.806, allocations: 15.54 MB / 472 MB, free: 10.57 MB / 346.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-07 Modelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour.fmu > 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/jenkins1/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