Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.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.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001473/0.001473, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00146/0.001459, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2223/0.2223, allocations: 46.1 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00142/0.001421, allocations: 75.11 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1145, allocations: 62.44 MB / 480.1 MB, free: 5.207 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.01549/0.13, allocations: 15.97 MB / 496.1 MB, free: 5.172 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01097/0.141, allocations: 5.475 MB / 0.4898 GB, free: 15.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002701/0.1438, allocations: 107.7 kB / 0.4899 GB, free: 15.57 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009194/0.153, allocations: 5.105 MB / 0.4949 GB, free: 10.45 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007576/0.1606, allocations: 2.587 MB / 0.4974 GB, free: 7.855 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003522/0.1642, allocations: 1.399 MB / 0.4988 GB, free: 6.457 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2369/0.4011, allocations: 8.223 MB / 0.5068 GB, free: 13.49 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01004/0.4112, allocations: 7.041 MB / 0.5137 GB, free: 12.52 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006111/0.4173, allocations: 2.762 MB / 0.5164 GB, free: 12.37 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006837/0.4242, allocations: 3.737 MB / 0.52 GB, free: 12.02 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003692/0.4279, allocations: 0.6372 MB / 0.5207 GB, free: 12.01 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007954/0.4359, allocations: 1.77 MB / 0.5224 GB, free: 12.01 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005967/0.442, allocations: 3.309 MB / 0.5256 GB, free: 11.25 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006088/0.4481, allocations: 3.789 MB / 0.5293 GB, free: 8.633 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009316/0.4574, allocations: 11.84 MB / 0.5409 GB, free: 2.164 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.4574, allocations: 0 / 0.5409 GB, free: 2.164 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.4575, allocations: 2.469 kB / 0.5409 GB, free: 2.164 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002741/0.4577, allocations: 2.625 kB / 0.5409 GB, free: 2.164 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: 2166 * Number of variables: 2166 Notification: Performance of Generate backend data structure: time 0.01701/0.4748, allocations: 8.165 MB / 0.5489 GB, free: 12.1 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.4748, allocations: 12.03 kB / 0.5489 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002005/0.4768, allocations: 1.149 MB / 0.55 GB, free: 10.97 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05402/0.5309, allocations: 8.365 MB / 0.5582 GB, free: 2.59 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01176/0.5426, allocations: 5.762 MB / 0.5638 GB, free: 13.02 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002994/0.543, allocations: 384.8 kB / 0.5642 GB, free: 12.69 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001713/0.5447, allocations: 0.5159 MB / 0.5647 GB, free: 12.22 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02922/0.5739, allocations: 15.42 MB / 0.5797 GB, free: 12.15 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002069/0.5742, allocations: 69.5 kB / 0.5798 GB, free: 12.11 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007127/0.5749, allocations: 232.4 kB / 0.58 GB, free: 11.92 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003819/0.5787, allocations: 2.545 MB / 0.5825 GB, free: 9.41 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02508/0.6038, allocations: 12.89 MB / 0.5951 GB, free: 12.74 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07243/0.6763, allocations: 57.18 MB / 0.6509 GB, free: 2.727 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01797/0.6943, allocations: 6.318 MB / 0.6571 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004613/0.699, allocations: 3.315 MB / 0.6603 GB, free: 8.953 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0182/0.7172, allocations: 11.37 MB / 0.6714 GB, free: 13.2 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.915e-05/0.7173, allocations: 63.27 kB / 0.6715 GB, free: 13.14 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=245): time 6.012e-06/0.7173, allocations: 0 / 0.6715 GB, free: 13.14 MB / 0.5137 GB Notification: Performance of matching and sorting (n=338): time 0.1415/0.8588, allocations: 39.5 MB / 0.7101 GB, free: 5.691 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001844/0.8591, allocations: 250.7 kB / 0.7103 GB, free: 5.398 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2263/1.085, allocations: 5.735 MB / 0.7159 GB, free: 187.7 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001118/1.087, allocations: 76.36 kB / 0.716 GB, free: 187.7 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004457/1.091, allocations: 4.445 MB / 0.7203 GB, free: 185.9 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.00203/1.093, allocations: 1.236 MB / 0.7215 GB, free: 185 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003199/1.096, allocations: 1.628 MB / 0.7231 GB, free: 184.2 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.017e-05/1.096, allocations: 301.7 kB / 0.7234 GB, free: 183.9 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006074/1.102, allocations: 3.771 MB / 0.7271 GB, free: 182.5 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007971/1.11, allocations: 8.309 MB / 0.7352 GB, free: 175.1 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01488/1.125, allocations: 13 MB / 0.7479 GB, free: 165.2 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001747/1.126, allocations: 47.22 kB / 0.7479 GB, free: 165.2 MB / 0.545 GB Notification: Performance of matching and sorting (n=1067) (initialization): time 0.02916/1.155, allocations: 15.46 MB / 0.763 GB, free: 159.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001234/1.155, allocations: 74.44 kB / 0.7631 GB, free: 159.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002171/1.155, allocations: 157.8 kB / 0.7633 GB, free: 159.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01206/1.167, allocations: 4.111 MB / 0.7673 GB, free: 158.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005381/1.173, allocations: 1.799 MB / 0.769 GB, free: 158.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02533/1.198, allocations: 20.94 MB / 0.7895 GB, free: 140.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00682/1.205, allocations: 495.9 kB / 0.79 GB, free: 140.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001402/1.206, allocations: 473.5 kB / 0.7904 GB, free: 139.6 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 717 * Number of states: 0 () * Number of discrete variables: 46 (jointUSP.prismatic.positiveBranch,body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[1],ground_rod.color[3],ground_rod.color[2],ground_rod.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.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 (966): * Single equations (assignments): 962 * 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,77,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004665/1.211, allocations: 3.107 MB / 0.7934 GB, free: 136.5 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001078/1.212, allocations: 0.5283 MB / 0.794 GB, free: 136 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0176/1.23, allocations: 9.609 MB / 0.8033 GB, free: 126.3 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-05/1.23, allocations: 36 kB / 0.8034 GB, free: 126.2 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.12e-05/1.23, allocations: 19.94 kB / 0.8034 GB, free: 126.2 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.549e-05/1.23, allocations: 22.75 kB / 0.8034 GB, free: 126.2 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03534/1.265, allocations: 19.74 MB / 0.8227 GB, free: 106.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.861e-05/1.265, allocations: 4 kB / 0.8227 GB, free: 106.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002433/1.268, allocations: 496 kB / 0.8232 GB, free: 105.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01119/1.279, allocations: 3.675 MB / 0.8268 GB, free: 102.2 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005526/1.279, allocations: 67.98 kB / 0.8268 GB, free: 102.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0214/1.301, allocations: 18.42 MB / 0.8448 GB, free: 83.55 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.542e-06/1.301, allocations: 16 kB / 0.8448 GB, free: 83.54 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02203/1.323, allocations: 14.22 MB / 0.8587 GB, free: 69.12 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001447/1.324, allocations: 0.5645 MB / 0.8593 GB, free: 68.54 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009533/1.325, allocations: 63.92 kB / 0.8593 GB, free: 68.47 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00257/1.328, allocations: 227.8 kB / 0.8595 GB, free: 68.25 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006618/1.329, allocations: 218.2 kB / 0.8598 GB, free: 68.04 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002226/1.329, allocations: 94.56 kB / 0.8598 GB, free: 67.95 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004285/1.333, allocations: 3.639 MB / 0.8634 GB, free: 64.34 MB / 0.545 GB Notification: Performance of sort global known variables: time 6.41e-07/1.333, allocations: 0 / 0.8634 GB, free: 64.34 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006722/1.34, allocations: 1.681 MB / 0.865 GB, free: 62.66 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * 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 (256): * Single equations (assignments): 252 * 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,64,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02196/1.362, allocations: 14.97 MB / 0.8797 GB, free: 47.5 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01772/1.38, allocations: 12.62 MB / 0.892 GB, free: 34.89 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.036e-05/1.38, allocations: 0 / 0.892 GB, free: 34.89 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004176/1.384, allocations: 3.648 MB / 0.8955 GB, free: 31.21 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004233/1.388, allocations: 0.7676 MB / 0.8963 GB, free: 30.47 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3339/1.722, allocations: 93.16 MB / 0.9873 GB, free: 126.5 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004459/1.726, allocations: 4.815 MB / 0.992 GB, free: 122.6 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005561/1.732, allocations: 2.6 MB / 0.9945 GB, free: 120 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003175/1.735, allocations: 3.057 MB / 0.9975 GB, free: 116.9 MB / 0.545 GB Notification: Performance of SimCode: time 8.12e-07/1.735, allocations: 0 / 0.9975 GB, free: 116.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1647/1.9, allocations: 132.8 MB / 1.127 GB, free: 0.6953 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.35/14.25, allocations: 11.84 kB / 1.127 GB, free: 0.6836 MB / 0.5606 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSP_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSP.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/JointUSP/JointUSP.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches