Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP.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.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_JointUSP",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.001303/0.001303, allocations: 107.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.00156/0.001561, allocations: 192.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.729/1.729, allocations: 205.1 MB / 222.8 MB, free: 4.672 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.4089/0.4089, allocations: 43.5 MB / 313.6 MB, free: 8.504 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.001775/0.001775, allocations: 63.91 kB / 382.3 MB, free: 8.508 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1457/0.1475, allocations: 57.77 MB / 440.1 MB, free: 14.64 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.3509/0.4985, allocations: 68.48 MB / 0.4967 GB, free: 6.449 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04309/0.5416, allocations: 14.13 MB / 0.5105 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02003/0.5617, allocations: 305.6 kB / 0.5107 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01059/0.5724, allocations: 4.964 MB / 0.5156 GB, free: 10.65 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008771/0.5812, allocations: 2.455 MB / 0.518 GB, free: 9.516 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004178/0.5854, allocations: 1.303 MB / 0.5193 GB, free: 8.957 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.018/0.6034, allocations: 7.933 MB / 0.527 GB, free: 6.176 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01054/0.614, allocations: 7.389 MB / 0.5342 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006983/0.621, allocations: 2.843 MB / 0.537 GB, free: 13.93 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007356/0.6284, allocations: 4.156 MB / 0.5411 GB, free: 9.766 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001742/0.6302, allocations: 0.6367 MB / 0.5417 GB, free: 9.129 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00383/0.634, allocations: 1.795 MB / 0.5434 GB, free: 7.332 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003376/0.6374, allocations: 3.39 MB / 0.5467 GB, free: 3.934 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005104/0.6425, allocations: 3.851 MB / 0.5505 GB, free: 64 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01432/0.6568, allocations: 12 MB / 0.5622 GB, free: 4.031 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.324e-06/0.6569, allocations: 0 / 0.5622 GB, free: 4.031 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.6569, allocations: 4 kB / 0.5622 GB, free: 4.027 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003849/0.6573, allocations: 0 / 0.5622 GB, free: 4.027 MB / 430.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.02463/0.6819, allocations: 8.233 MB / 0.5703 GB, free: 11.71 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.388e-05/0.682, allocations: 15.83 kB / 0.5703 GB, free: 11.7 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003442/0.6855, allocations: 1.152 MB / 0.5714 GB, free: 10.53 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05398/0.7395, allocations: 8.362 MB / 0.5796 GB, free: 2.148 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0169/0.7564, allocations: 6.577 MB / 0.586 GB, free: 11.49 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004438/0.7569, allocations: 382.2 kB / 0.5864 GB, free: 11.12 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00242/0.7593, allocations: 0.5151 MB / 0.5869 GB, free: 10.6 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03764/0.797, allocations: 15.4 MB / 0.6019 GB, free: 10.3 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004533/0.7975, allocations: 67.42 kB / 0.602 GB, free: 10.24 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002595/0.8001, allocations: 235.8 kB / 0.6022 GB, free: 10.01 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004508/0.8046, allocations: 2.552 MB / 0.6047 GB, free: 7.453 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0322/0.8369, allocations: 12.87 MB / 0.6173 GB, free: 10.55 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3591/1.196, allocations: 57.23 MB / 0.6731 GB, free: 101.9 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0181/1.214, allocations: 6.321 MB / 0.6793 GB, free: 99.89 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005751/1.22, allocations: 3.323 MB / 0.6826 GB, free: 98.49 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02553/1.246, allocations: 11.31 MB / 0.6936 GB, free: 92.46 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.353e-05/1.246, allocations: 61.02 kB / 0.6937 GB, free: 92.4 MB / 494.1 MB Notification: Performance of pre-optimization done (n=245): time 6.111e-06/1.246, allocations: 1.125 kB / 0.6937 GB, free: 92.4 MB / 494.1 MB Notification: Performance of matching and sorting (n=338): time 0.1444/1.39, allocations: 40.05 MB / 0.7328 GB, free: 67.64 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001092/1.39, allocations: 247.8 kB / 0.733 GB, free: 67.35 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01164/1.402, allocations: 5.782 MB / 0.7387 GB, free: 61.59 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001029/1.403, allocations: 77.7 kB / 0.7387 GB, free: 61.51 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003224/1.406, allocations: 4.461 MB / 0.7431 GB, free: 57.05 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002097/1.408, allocations: 1.237 MB / 0.7443 GB, free: 55.82 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00495/1.413, allocations: 1.625 MB / 0.7459 GB, free: 54.18 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.338e-05/1.413, allocations: 305.1 kB / 0.7462 GB, free: 53.88 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005349/1.419, allocations: 3.776 MB / 0.7499 GB, free: 50.1 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007776/1.427, allocations: 8.288 MB / 0.7579 GB, free: 39.59 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0135/1.44, allocations: 13 MB / 0.7706 GB, free: 24.35 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000148/1.44, allocations: 44 kB / 0.7707 GB, free: 24.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=1067) (initialization): time 0.02858/1.469, allocations: 15.46 MB / 0.7858 GB, free: 8.789 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001372/1.469, allocations: 72 kB / 0.7859 GB, free: 8.719 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002386/1.469, allocations: 156 kB / 0.786 GB, free: 8.566 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01155/1.481, allocations: 4.116 MB / 0.79 GB, free: 4.441 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005626/1.487, allocations: 1.794 MB / 0.7918 GB, free: 2.645 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03062/1.517, allocations: 20.94 MB / 0.8122 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006423/1.524, allocations: 495.3 kB / 0.8127 GB, free: 13.09 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00139/1.525, allocations: 470.6 kB / 0.8132 GB, free: 12.63 MB / 0.5137 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.005842/1.531, allocations: 3.122 MB / 0.8162 GB, free: 9.492 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001388/1.532, allocations: 0.5245 MB / 0.8167 GB, free: 8.961 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3388/1.871, allocations: 9.616 MB / 0.8261 GB, free: 156 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.714e-05/1.871, allocations: 34.94 kB / 0.8261 GB, free: 156 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.413e-05/1.871, allocations: 14.03 kB / 0.8262 GB, free: 156 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001003/1.871, allocations: 12.47 kB / 0.8262 GB, free: 156 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04568/1.917, allocations: 19.76 MB / 0.8455 GB, free: 151.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.064e-05/1.917, allocations: 8.219 kB / 0.8455 GB, free: 151.3 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002471/1.92, allocations: 496.1 kB / 0.8459 GB, free: 151.3 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01275/1.933, allocations: 3.668 MB / 0.8495 GB, free: 150.6 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001008/1.934, allocations: 60.91 kB / 0.8496 GB, free: 150.6 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03558/1.969, allocations: 18.42 MB / 0.8676 GB, free: 142.6 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.354e-05/1.969, allocations: 9.344 kB / 0.8676 GB, free: 142.6 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02919/1.998, allocations: 14.21 MB / 0.8815 GB, free: 137.3 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004081/2.003, allocations: 1.144 MB / 0.8826 GB, free: 136.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002158/2.005, allocations: 63.45 kB / 0.8826 GB, free: 136.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004205/2.009, allocations: 220.5 kB / 0.8828 GB, free: 136.8 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001293/2.01, allocations: 230.4 kB / 0.8831 GB, free: 136.8 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005836/2.011, allocations: 92.41 kB / 0.8832 GB, free: 136.8 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.006652/2.018, allocations: 3.677 MB / 0.8867 GB, free: 135.6 MB / 0.5137 GB Notification: Performance of sort global known variables: time 4.21e-07/2.018, allocations: 0 / 0.8867 GB, free: 135.6 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01019/2.028, allocations: 1.7 MB / 0.8884 GB, free: 135.4 MB / 0.5137 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.02785/2.056, allocations: 14.97 MB / 0.903 GB, free: 123.1 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.02211/2.078, allocations: 12.62 MB / 0.9153 GB, free: 110.6 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.587e-05/2.078, allocations: 0 / 0.9153 GB, free: 110.6 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.005649/2.084, allocations: 3.626 MB / 0.9189 GB, free: 107 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007735/2.091, allocations: 0.7829 MB / 0.9197 GB, free: 106.2 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1664/2.258, allocations: 96.68 MB / 1.014 GB, free: 14.57 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008765/2.267, allocations: 4.84 MB / 1.019 GB, free: 9.699 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0081/2.275, allocations: 2.591 MB / 1.021 GB, free: 7.102 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005759/2.281, allocations: 3.081 MB / 1.024 GB, free: 4.02 MB / 0.5294 GB Notification: Performance of SimCode: time 1.873e-06/2.281, allocations: 0 / 1.024 GB, free: 4.02 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4708/2.751, allocations: 133.3 MB / 1.154 GB, free: 82.28 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002059/2.752, allocations: 225.8 kB / 1.155 GB, free: 82.02 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.262/8.014, allocations: 0 / 1.155 GB, free: 82.02 MB / 0.5294 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_JointUSP_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_JointUSP.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/FourbarVariants/JointUSP/JointUSP.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches