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.001342/0.001342, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001563/0.001563, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 227.4 MB / 246.3 MB, free: 9.039 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2248/0.2248, allocations: 46.1 MB / 343.6 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001613/0.001613, allocations: 75.78 kB / 416.9 MB, free: 20.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1411/0.1427, allocations: 62.44 MB / 479.4 MB, free: 5.613 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.03436/0.1771, allocations: 34.62 MB / 0.502 GB, free: 2.852 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.296/0.4732, allocations: 7.863 MB / 0.5096 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007924/0.4811, allocations: 151.6 kB / 0.5098 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00442/0.4856, allocations: 2.051 MB / 0.5118 GB, free: 10.22 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004834/0.4905, allocations: 1.557 MB / 0.5133 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00194/0.4924, allocations: 0.6424 MB / 0.5139 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009929/0.5024, allocations: 5.723 MB / 0.5195 GB, free: 9.543 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004406/0.5068, allocations: 2.566 MB / 0.522 GB, free: 8.668 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002665/0.5095, allocations: 1.165 MB / 0.5232 GB, free: 8.32 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003376/0.5129, allocations: 1.989 MB / 0.5251 GB, free: 7.555 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008339/0.5137, allocations: 186.6 kB / 0.5253 GB, free: 7.555 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002405/0.5162, allocations: 1.161 MB / 0.5264 GB, free: 7.074 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001573/0.5178, allocations: 1.585 MB / 0.528 GB, free: 6.203 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001987/0.5197, allocations: 1.88 MB / 0.5298 GB, free: 4.793 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006156/0.5259, allocations: 6.044 MB / 0.5357 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.939e-06/0.526, allocations: 0 / 0.5357 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.526, allocations: 0 / 0.5357 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001847/0.5262, allocations: 2.625 kB / 0.5357 GB, free: 0.8281 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.01126/0.5374, allocations: 4.327 MB / 0.5399 GB, free: 13.89 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.421e-05/0.5375, allocations: 11.03 kB / 0.5399 GB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001138/0.5386, allocations: 0.629 MB / 0.5406 GB, free: 13.49 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07923/0.6179, allocations: 7.023 MB / 0.5474 GB, free: 7.355 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006554/0.6245, allocations: 2.581 MB / 0.5499 GB, free: 4.738 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001541/0.6247, allocations: 192 kB / 0.5501 GB, free: 4.582 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007193/0.6254, allocations: 280 kB / 0.5504 GB, free: 4.344 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01343/0.6388, allocations: 8.532 MB / 0.5587 GB, free: 11.28 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.551e-05/0.639, allocations: 39.66 kB / 0.5587 GB, free: 11.24 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003286/0.6393, allocations: 132.1 kB / 0.5589 GB, free: 11.15 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002933/0.6422, allocations: 1.737 MB / 0.5606 GB, free: 9.422 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01404/0.6563, allocations: 7.167 MB / 0.5676 GB, free: 2.25 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05058/0.7069, allocations: 33.93 MB / 0.6007 GB, free: 15.41 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009328/0.7163, allocations: 3.429 MB / 0.6041 GB, free: 11.83 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002614/0.7189, allocations: 1.649 MB / 0.6057 GB, free: 10.17 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01317/0.7321, allocations: 7.32 MB / 0.6128 GB, free: 2.609 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.158e-05/0.7322, allocations: 47.56 kB / 0.6129 GB, free: 2.555 MB / 462.1 MB Notification: Performance of pre-optimization done (n=151): time 4.91e-06/0.7322, allocations: 0 / 0.6129 GB, free: 2.555 MB / 462.1 MB Notification: Performance of matching and sorting (n=188): time 0.06404/0.7963, allocations: 19.02 MB / 0.6314 GB, free: 15.38 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001113/0.7964, allocations: 201.2 kB / 0.6316 GB, free: 15.14 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006316/0.8028, allocations: 3.736 MB / 0.6353 GB, free: 11.42 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003178/0.8031, allocations: 53.7 kB / 0.6353 GB, free: 11.36 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002145/0.8053, allocations: 2.82 MB / 0.6381 GB, free: 8.543 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009403/0.8062, allocations: 0.7127 MB / 0.6388 GB, free: 7.836 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002236/0.8085, allocations: 1.172 MB / 0.6399 GB, free: 6.652 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.8086, allocations: 301.1 kB / 0.6402 GB, free: 6.355 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003276/0.8119, allocations: 2.096 MB / 0.6423 GB, free: 4.254 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005579/0.8174, allocations: 5.656 MB / 0.6478 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01002/0.8275, allocations: 8.421 MB / 0.656 GB, free: 2.648 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001468/0.8277, allocations: 36 kB / 0.656 GB, free: 2.613 MB / 0.4981 GB Notification: Performance of matching and sorting (n=763) (initialization): time 0.0192/0.8469, allocations: 8.702 MB / 0.6645 GB, free: 9.906 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001644/0.8471, allocations: 56 kB / 0.6646 GB, free: 9.852 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002102/0.8473, allocations: 128 kB / 0.6647 GB, free: 9.727 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005201/0.8525, allocations: 1.392 MB / 0.6661 GB, free: 8.332 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004558/0.8571, allocations: 1.298 MB / 0.6673 GB, free: 7.031 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01335/0.8705, allocations: 8.573 MB / 0.6757 GB, free: 14.33 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004701/0.8752, allocations: 307.5 kB / 0.676 GB, free: 14.03 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001232/0.8765, allocations: 360 kB / 0.6763 GB, free: 13.68 MB / 0.5294 GB 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.004107/0.8806, allocations: 1.891 MB / 0.6782 GB, free: 11.78 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008321/0.8815, allocations: 335.7 kB / 0.6785 GB, free: 11.45 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009026/0.8905, allocations: 3.774 MB / 0.6822 GB, free: 7.656 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.252e-05/0.8906, allocations: 20 kB / 0.6822 GB, free: 7.637 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.085e-05/0.8906, allocations: 11.94 kB / 0.6822 GB, free: 7.625 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.54e-05/0.8906, allocations: 7.969 kB / 0.6822 GB, free: 7.617 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01824/0.9089, allocations: 8.188 MB / 0.6902 GB, free: 15.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.238e-05/0.9089, allocations: 0 / 0.6902 GB, free: 15.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001316/0.9103, allocations: 251.6 kB / 0.6905 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00474/0.915, allocations: 1.179 MB / 0.6916 GB, free: 13.97 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002917/0.9153, allocations: 35.98 kB / 0.6917 GB, free: 13.94 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01207/0.9274, allocations: 7.831 MB / 0.6993 GB, free: 5.977 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.9275, allocations: 4.031 kB / 0.6993 GB, free: 5.973 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2616/1.189, allocations: 6.277 MB / 0.7054 GB, free: 193.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009727/1.19, allocations: 380.6 kB / 0.7058 GB, free: 193.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005874/1.191, allocations: 31.44 kB / 0.7058 GB, free: 193.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001414/1.192, allocations: 82.22 kB / 0.7059 GB, free: 193.1 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003936/1.192, allocations: 108 kB / 0.706 GB, free: 193.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000133/1.193, allocations: 52.72 kB / 0.7061 GB, free: 193.1 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003749/1.196, allocations: 2.327 MB / 0.7083 GB, free: 193 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.3e-07/1.196, allocations: 1.406 kB / 0.7083 GB, free: 193 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005007/1.201, allocations: 0.9458 MB / 0.7093 GB, free: 193 MB / 0.545 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.01213/1.214, allocations: 7.001 MB / 0.7161 GB, free: 190.7 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008713/1.222, allocations: 5.208 MB / 0.7212 GB, free: 188.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.272e-06/1.222, allocations: 0 / 0.7212 GB, free: 188.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00236/1.225, allocations: 1.746 MB / 0.7229 GB, free: 188.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00256/1.227, allocations: 381.9 kB / 0.7233 GB, free: 188 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06438/1.292, allocations: 50.84 MB / 0.7729 GB, free: 144.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002483/1.294, allocations: 2.968 MB / 0.7758 GB, free: 141.7 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003861/1.298, allocations: 1.807 MB / 0.7776 GB, free: 139.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001783/1.3, allocations: 1.644 MB / 0.7792 GB, free: 138.2 MB / 0.545 GB Notification: Performance of SimCode: time 1.302e-06/1.3, allocations: 0 / 0.7792 GB, free: 138.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09282/1.393, allocations: 68.73 MB / 0.8463 GB, free: 69.82 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001618/1.393, allocations: 227 kB / 0.8465 GB, free: 69.56 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.086/5.479, allocations: 0 / 0.8465 GB, free: 69.56 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/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