Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001327/0.001332, allocations: 101.8 kB / 15.98 MB, free: 6.348 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.001338/0.001338, allocations: 194.5 kB / 16.91 MB, free: 6.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.442/1.442, allocations: 205.1 MB / 222.8 MB, free: 4.695 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3559/0.3559, allocations: 43.51 MB / 313.6 MB, free: 8.57 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001477, allocations: 70.56 kB / 382.3 MB, free: 8.516 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1174, allocations: 57.78 MB / 440.1 MB, free: 14.64 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.2651/0.3826, allocations: 34.86 MB / 475 MB, free: 29.96 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01538/0.3981, allocations: 7.845 MB / 482.8 MB, free: 25.44 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007297/0.4054, allocations: 148.7 kB / 483 MB, free: 25.42 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003784/0.4092, allocations: 1.983 MB / 484.9 MB, free: 24.52 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00408/0.4134, allocations: 1.585 MB / 486.5 MB, free: 23.84 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001438/0.4148, allocations: 0.6617 MB / 487.2 MB, free: 23.57 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004425/0.4192, allocations: 3.943 MB / 491.1 MB, free: 22.16 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00297/0.4222, allocations: 2.756 MB / 493.9 MB, free: 21.05 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002322/0.4246, allocations: 1.353 MB / 495.2 MB, free: 20.48 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003344/0.4279, allocations: 2.066 MB / 497.3 MB, free: 19.77 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001458/0.4294, allocations: 266 kB / 497.6 MB, free: 19.77 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003318/0.4328, allocations: 1.198 MB / 498.8 MB, free: 19.51 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002702/0.4355, allocations: 1.691 MB / 0.4887 GB, free: 18.92 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003547/0.439, allocations: 2.002 MB / 0.4907 GB, free: 17.53 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008814/0.4479, allocations: 6.213 MB / 0.4967 GB, free: 15.34 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.4479, allocations: 0 / 0.4967 GB, free: 15.34 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.4479, allocations: 1.25 kB / 0.4967 GB, free: 15.34 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002692/0.4482, allocations: 0 / 0.4967 GB, free: 15.34 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.01341/0.4616, allocations: 4.362 MB / 0.501 GB, free: 12.89 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.638e-05/0.4617, allocations: 13.86 kB / 0.501 GB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001165/0.4629, allocations: 0.6334 MB / 0.5016 GB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07982/0.5427, allocations: 7.025 MB / 0.5085 GB, free: 9.785 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007177/0.5499, allocations: 2.848 MB / 0.5113 GB, free: 7.992 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001615/0.5501, allocations: 190.6 kB / 0.5115 GB, free: 7.902 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001169/0.5513, allocations: 280.3 kB / 0.5117 GB, free: 7.797 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01392/0.5652, allocations: 8.508 MB / 0.52 GB, free: 14.68 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001196/0.5654, allocations: 39.66 kB / 0.5201 GB, free: 14.64 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003765/0.5658, allocations: 131.8 kB / 0.5202 GB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002633/0.5684, allocations: 1.739 MB / 0.5219 GB, free: 12.78 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01352/0.5819, allocations: 7.151 MB / 0.5289 GB, free: 5.617 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04256/0.6245, allocations: 33.97 MB / 0.5621 GB, free: 2.59 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00839/0.633, allocations: 3.405 MB / 0.5654 GB, free: 15.04 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002172/0.6352, allocations: 1.661 MB / 0.567 GB, free: 13.37 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0111/0.6463, allocations: 7.229 MB / 0.5741 GB, free: 5.871 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.099e-05/0.6464, allocations: 47.55 kB / 0.5741 GB, free: 5.816 MB / 446.1 MB Notification: Performance of pre-optimization done (n=151): time 4.248e-06/0.6464, allocations: 0 / 0.5741 GB, free: 5.816 MB / 446.1 MB Notification: Performance of matching and sorting (n=188): time 0.0614/0.7078, allocations: 19.09 MB / 0.5928 GB, free: 2.562 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.682e-05/0.7079, allocations: 205.2 kB / 0.593 GB, free: 2.32 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005356/0.7133, allocations: 3.76 MB / 0.5966 GB, free: 14.57 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003748/0.7137, allocations: 49.7 kB / 0.5967 GB, free: 14.52 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001859/0.7155, allocations: 2.826 MB / 0.5994 GB, free: 11.65 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007834/0.7163, allocations: 0.7173 MB / 0.6001 GB, free: 10.92 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001435/0.7178, allocations: 1.163 MB / 0.6013 GB, free: 9.746 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001103/0.7179, allocations: 305.1 kB / 0.6016 GB, free: 9.445 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00277/0.7207, allocations: 2.096 MB / 0.6036 GB, free: 7.344 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004783/0.7255, allocations: 5.648 MB / 0.6091 GB, free: 15.92 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008531/0.734, allocations: 8.396 MB / 0.6173 GB, free: 5.77 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.632e-05/0.7341, allocations: 36 kB / 0.6174 GB, free: 5.734 MB / 494.1 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01737/0.7515, allocations: 8.682 MB / 0.6258 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.000121/0.7517, allocations: 60 kB / 0.6259 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002072/0.7519, allocations: 124 kB / 0.626 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005442/0.7573, allocations: 1.403 MB / 0.6274 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004863/0.7623, allocations: 1.291 MB / 0.6286 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01421/0.7765, allocations: 9.205 MB / 0.6376 GB, free: 0.8086 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005163/0.7817, allocations: 299.6 kB / 0.6379 GB, free: 0.5156 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001223/0.7829, allocations: 364 kB / 0.6383 GB, free: 164 kB / 0.4981 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.2466/1.03, allocations: 1.889 MB / 0.6401 GB, free: 157.1 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008694/1.03, allocations: 337.8 kB / 0.6404 GB, free: 157.1 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00803/1.038, allocations: 3.762 MB / 0.6441 GB, free: 157 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.588e-05/1.039, allocations: 20.52 kB / 0.6441 GB, free: 157 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.401e-05/1.039, allocations: 16.19 kB / 0.6441 GB, free: 157 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.29e-05/1.039, allocations: 9.469 kB / 0.6441 GB, free: 157 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01573/1.054, allocations: 8.169 MB / 0.6521 GB, free: 154.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.142e-05/1.054, allocations: 3.75 kB / 0.6521 GB, free: 154.5 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001255/1.056, allocations: 250.2 kB / 0.6524 GB, free: 154.5 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004301/1.06, allocations: 1.184 MB / 0.6535 GB, free: 154.3 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003614/1.06, allocations: 36.89 kB / 0.6536 GB, free: 154.2 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01065/1.071, allocations: 8.471 MB / 0.6618 GB, free: 150.2 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/1.071, allocations: 0 / 0.6618 GB, free: 150.2 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01249/1.084, allocations: 6.274 MB / 0.668 GB, free: 147.9 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001944/1.086, allocations: 0.6146 MB / 0.6686 GB, free: 147.6 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006478/1.086, allocations: 27.97 kB / 0.6686 GB, free: 147.6 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001349/1.088, allocations: 80.3 kB / 0.6687 GB, free: 147.6 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004062/1.088, allocations: 106.3 kB / 0.6688 GB, free: 147.6 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001542/1.088, allocations: 53.84 kB / 0.6688 GB, free: 147.6 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.00476/1.093, allocations: 2.343 MB / 0.6711 GB, free: 146.8 MB / 0.4981 GB Notification: Performance of sort global known variables: time 5.91e-07/1.093, allocations: 0 / 0.6711 GB, free: 146.8 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.006602/1.1, allocations: 0.9673 MB / 0.672 GB, free: 146.7 MB / 0.4981 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.01282/1.112, allocations: 6.973 MB / 0.6789 GB, free: 143.7 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.009907/1.122, allocations: 6.125 MB / 0.6848 GB, free: 141.8 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/1.122, allocations: 0 / 0.6848 GB, free: 141.8 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002205/1.125, allocations: 1.745 MB / 0.6865 GB, free: 141.1 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002699/1.127, allocations: 409.8 kB / 0.6869 GB, free: 140.9 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08251/1.21, allocations: 50.98 MB / 0.7367 GB, free: 88.5 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004187/1.214, allocations: 2.969 MB / 0.7396 GB, free: 85.5 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004415/1.219, allocations: 1.821 MB / 0.7414 GB, free: 83.67 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002457/1.221, allocations: 1.651 MB / 0.743 GB, free: 82.02 MB / 0.4981 GB Notification: Performance of SimCode: time 1.383e-06/1.221, allocations: 0 / 0.743 GB, free: 82.02 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1033/1.324, allocations: 70.48 MB / 0.8118 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000195/1.325, allocations: 226.9 kB / 0.812 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.014/5.338, allocations: 0 / 0.812 GB, free: 11.28 MB / 0.4981 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches