Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001336/0.001336, allocations: 103.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001338/0.001338, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.399/1.399, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2219/0.2219, allocations: 46.09 MB / 344.1 MB, free: 11.58 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00164/0.001641, allocations: 78.84 kB / 417.7 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1303/0.1319, allocations: 62.44 MB / 480.1 MB, free: 5.164 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01262/0.1446, allocations: 10.34 MB / 490.5 MB, free: 10.78 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009187/0.1538, allocations: 3.892 MB / 494.4 MB, free: 6.875 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00205/0.1559, allocations: 63.81 kB / 494.4 MB, free: 6.812 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004311/0.1603, allocations: 2.063 MB / 496.5 MB, free: 4.742 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004311/0.1647, allocations: 1.673 MB / 498.2 MB, free: 3.062 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001629/0.1663, allocations: 0.694 MB / 498.8 MB, free: 2.367 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005031/0.1714, allocations: 4.005 MB / 0.4911 GB, free: 14.36 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003578/0.175, allocations: 2.594 MB / 0.4936 GB, free: 11.71 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002124/0.1771, allocations: 1.304 MB / 0.4949 GB, free: 10.4 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002429/0.1796, allocations: 1.85 MB / 0.4967 GB, free: 8.543 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008443/0.1804, allocations: 264 kB / 0.4969 GB, free: 8.285 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002597/0.183, allocations: 1.166 MB / 0.4981 GB, free: 7.117 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002219/0.1853, allocations: 1.632 MB / 0.4997 GB, free: 5.48 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003624/0.1889, allocations: 1.957 MB / 0.5016 GB, free: 3.512 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2434/0.4323, allocations: 6.094 MB / 0.5075 GB, free: 20.15 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.4323, allocations: 1.172 kB / 0.5075 GB, free: 20.15 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.4323, allocations: 3.938 kB / 0.5075 GB, free: 20.15 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002073/0.4326, allocations: 0 / 0.5075 GB, free: 20.15 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1319 * Number of variables: 1319 Notification: Performance of Generate backend data structure: time 0.0151/0.4477, allocations: 4.325 MB / 0.5118 GB, free: 18.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.784e-05/0.4477, allocations: 8.812 kB / 0.5118 GB, free: 18.43 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001592/0.4493, allocations: 0.6264 MB / 0.5124 GB, free: 18.36 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09123/0.5406, allocations: 7.021 MB / 0.5192 GB, free: 18.04 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007374/0.548, allocations: 2.592 MB / 0.5218 GB, free: 17.46 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002154/0.5483, allocations: 194.4 kB / 0.5219 GB, free: 17.46 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001563/0.5498, allocations: 272.8 kB / 0.5222 GB, free: 17.45 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01476/0.5646, allocations: 8.527 MB / 0.5305 GB, free: 13.64 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000135/0.5648, allocations: 41.56 kB / 0.5306 GB, free: 13.64 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003944/0.5652, allocations: 133.2 kB / 0.5307 GB, free: 13.58 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002554/0.5677, allocations: 1.73 MB / 0.5324 GB, free: 12.94 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0143/0.5821, allocations: 7.174 MB / 0.5394 GB, free: 8.332 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03867/0.6208, allocations: 33.92 MB / 0.5725 GB, free: 5.805 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008731/0.6296, allocations: 3.441 MB / 0.5759 GB, free: 2.219 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002129/0.6317, allocations: 1.652 MB / 0.5775 GB, free: 0.5625 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01121/0.6429, allocations: 7.313 MB / 0.5846 GB, free: 9.027 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.372e-05/0.643, allocations: 49.86 kB / 0.5847 GB, free: 8.973 MB / 430.1 MB Notification: Performance of pre-optimization done (n=151): time 4.939e-06/0.643, allocations: 4 kB / 0.5847 GB, free: 8.969 MB / 430.1 MB Notification: Performance of matching and sorting (n=188): time 0.0668/0.7098, allocations: 19.02 MB / 0.6033 GB, free: 5.871 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001179/0.71, allocations: 197.2 kB / 0.6035 GB, free: 5.637 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007486/0.7175, allocations: 3.743 MB / 0.6071 GB, free: 1.906 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004476/0.718, allocations: 49.7 kB / 0.6072 GB, free: 1.852 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002116/0.7201, allocations: 2.819 MB / 0.6099 GB, free: 15.04 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001008/0.7211, allocations: 0.7128 MB / 0.6106 GB, free: 14.34 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002593/0.7237, allocations: 1.169 MB / 0.6117 GB, free: 13.16 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.7239, allocations: 301.1 kB / 0.612 GB, free: 12.86 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003598/0.7275, allocations: 2.096 MB / 0.6141 GB, free: 10.76 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006061/0.7336, allocations: 5.658 MB / 0.6196 GB, free: 3.387 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01175/0.7453, allocations: 8.415 MB / 0.6278 GB, free: 9.734 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002562/0.7457, allocations: 36 kB / 0.6279 GB, free: 9.699 MB / 478.1 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.02115/0.7668, allocations: 8.7 MB / 0.6364 GB, free: 1.207 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001524/0.767, allocations: 56 kB / 0.6364 GB, free: 1.152 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002258/0.7673, allocations: 124 kB / 0.6365 GB, free: 1.031 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005139/0.7724, allocations: 1.396 MB / 0.6379 GB, free: 15.63 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004537/0.777, allocations: 1.302 MB / 0.6392 GB, free: 14.32 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01506/0.7921, allocations: 9.226 MB / 0.6482 GB, free: 4.965 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00478/0.7969, allocations: 295.6 kB / 0.6485 GB, free: 4.676 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001129/0.798, allocations: 360 kB / 0.6488 GB, free: 4.324 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 570 * Number of states: 0 () * Number of discrete variables: 36 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (695): * Single equations (assignments): 691 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,44,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004086/0.8021, allocations: 1.896 MB / 0.6506 GB, free: 2.414 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000924/0.8031, allocations: 339.6 kB / 0.651 GB, free: 2.082 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009351/0.8124, allocations: 3.774 MB / 0.6547 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.601e-05/0.8125, allocations: 20 kB / 0.6547 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.677e-05/0.8126, allocations: 8 kB / 0.6547 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.631e-05/0.8126, allocations: 7.969 kB / 0.6547 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02011/0.8327, allocations: 8.183 MB / 0.6627 GB, free: 6.062 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-05/0.8328, allocations: 4 kB / 0.6627 GB, free: 6.059 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001511/0.8343, allocations: 251.6 kB / 0.6629 GB, free: 5.812 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004896/0.8392, allocations: 1.183 MB / 0.6641 GB, free: 4.625 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000379/0.8396, allocations: 32 kB / 0.6641 GB, free: 4.594 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01323/0.8529, allocations: 8.477 MB / 0.6724 GB, free: 11.98 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.8529, allocations: 0 / 0.6724 GB, free: 11.98 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01259/0.8655, allocations: 6.294 MB / 0.6785 GB, free: 5.664 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00121/0.8668, allocations: 380.3 kB / 0.6789 GB, free: 5.273 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001083/0.8679, allocations: 31.98 kB / 0.6789 GB, free: 5.242 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002064/0.87, allocations: 82.25 kB / 0.679 GB, free: 5.164 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004609/0.8704, allocations: 109.1 kB / 0.6791 GB, free: 5.059 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002296/0.8707, allocations: 51.98 kB / 0.6792 GB, free: 5.008 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.005227/0.8759, allocations: 2.332 MB / 0.6814 GB, free: 2.691 MB / 0.5137 GB Notification: Performance of sort global known variables: time 4.81e-07/0.876, allocations: 0 / 0.6814 GB, free: 2.691 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.006203/0.8822, allocations: 0.9453 MB / 0.6824 GB, free: 1.746 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (revolute.phi,revolute.w) * 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 (130): * Single equations (assignments): 126 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01275/0.8949, allocations: 6.99 MB / 0.6892 GB, free: 10.73 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01153/0.9065, allocations: 6.136 MB / 0.6952 GB, free: 4.605 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.01e-05/0.9066, allocations: 0 / 0.6952 GB, free: 4.605 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003209/0.9098, allocations: 1.745 MB / 0.6969 GB, free: 2.852 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003838/0.9136, allocations: 407.9 kB / 0.6973 GB, free: 2.461 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2867/1.2, allocations: 49.22 MB / 0.7453 GB, free: 179.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003139/1.204, allocations: 2.955 MB / 0.7482 GB, free: 178 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004153/1.208, allocations: 1.819 MB / 0.75 GB, free: 177.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002001/1.21, allocations: 1.65 MB / 0.7516 GB, free: 176.3 MB / 0.545 GB Notification: Performance of SimCode: time 7.31e-07/1.21, allocations: 0 / 0.7516 GB, free: 176.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09783/1.308, allocations: 70.25 MB / 0.8202 GB, free: 107.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/12.92, allocations: 7.609 kB / 0.8202 GB, free: 107.2 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches