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.0009369/0.0009367, allocations: 94.77 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001148/0.001148, allocations: 205.9 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 227.8 MB / 246.8 MB, free: 9.645 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1983/0.1983, allocations: 46.19 MB / 345.2 MB, free: 11.2 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002439/0.0002439, allocations: 8 kB / 419.6 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1196, allocations: 63.57 MB / 483.2 MB, free: 4.062 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.3304/0.4501, allocations: 66.29 MB / 0.5366 GB, free: 5.883 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0371/0.4873, allocations: 14 MB / 0.5503 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02047/0.5078, allocations: 303.8 kB / 0.5505 GB, free: 13.33 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003092/0.5109, allocations: 0.5988 MB / 0.5511 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01002/0.5209, allocations: 2.46 MB / 0.5535 GB, free: 11.28 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004146/0.5251, allocations: 1.27 MB / 0.5548 GB, free: 10.44 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01774/0.5429, allocations: 11.79 MB / 0.5663 GB, free: 1.605 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01724/0.5601, allocations: 9.522 MB / 0.5756 GB, free: 7.969 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005217/0.5654, allocations: 1.977 MB / 0.5775 GB, free: 5.984 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006129/0.5716, allocations: 3.379 MB / 0.5808 GB, free: 2.594 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001449/0.573, allocations: 240 kB / 0.581 GB, free: 2.359 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004289/0.5774, allocations: 1.467 MB / 0.5825 GB, free: 0.8906 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004642/0.582, allocations: 2.871 MB / 0.5853 GB, free: 14.01 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00722/0.5893, allocations: 3.231 MB / 0.5884 GB, free: 10.75 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01466/0.604, allocations: 11.31 MB / 0.5995 GB, free: 15.41 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.604, allocations: 0 / 0.5995 GB, free: 15.41 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.604, allocations: 0 / 0.5995 GB, free: 15.41 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000459/0.6045, allocations: 4 kB / 0.5995 GB, free: 15.41 MB / 446.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.0187/0.6232, allocations: 6.74 MB / 0.6061 GB, free: 8.586 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.669e-05/0.6233, allocations: 12.88 kB / 0.6061 GB, free: 8.574 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003982/0.6273, allocations: 1.148 MB / 0.6072 GB, free: 7.414 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05943/0.6867, allocations: 8.472 MB / 0.6155 GB, free: 14.92 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01708/0.7039, allocations: 5.764 MB / 0.6211 GB, free: 9.074 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005909/0.7045, allocations: 382.2 kB / 0.6215 GB, free: 8.699 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003738/0.7083, allocations: 0.5113 MB / 0.622 GB, free: 8.188 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03817/0.7465, allocations: 15.46 MB / 0.6371 GB, free: 7.832 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003465/0.7469, allocations: 67.36 kB / 0.6371 GB, free: 7.766 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001862/0.7487, allocations: 239.8 kB / 0.6373 GB, free: 7.531 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004408/0.7532, allocations: 2.544 MB / 0.6398 GB, free: 4.98 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03443/0.7876, allocations: 12.92 MB / 0.6525 GB, free: 8.027 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.338/1.126, allocations: 57.15 MB / 0.7083 GB, free: 166.7 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01844/1.144, allocations: 6.365 MB / 0.7145 GB, free: 166 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004934/1.149, allocations: 3.315 MB / 0.7177 GB, free: 166 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01774/1.167, allocations: 11.36 MB / 0.7288 GB, free: 160.3 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.922e-05/1.167, allocations: 60.34 kB / 0.7289 GB, free: 160.2 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=245): time 5.279e-06/1.167, allocations: 0 / 0.7289 GB, free: 160.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=338): time 0.1347/1.302, allocations: 39.61 MB / 0.7676 GB, free: 136.3 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.781e-05/1.302, allocations: 247.3 kB / 0.7678 GB, free: 136 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00979/1.312, allocations: 5.744 MB / 0.7734 GB, free: 130.3 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008848/1.313, allocations: 77.7 kB / 0.7735 GB, free: 130.2 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002511/1.315, allocations: 4.438 MB / 0.7778 GB, free: 125.8 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001472/1.317, allocations: 1.236 MB / 0.779 GB, free: 124.6 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008628/1.317, allocations: 0.688 MB / 0.7797 GB, free: 123.9 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.142e-05/1.317, allocations: 305.1 kB / 0.78 GB, free: 123.6 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004627/1.322, allocations: 3.776 MB / 0.7837 GB, free: 119.8 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006909/1.329, allocations: 8.301 MB / 0.7918 GB, free: 109.3 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01583/1.345, allocations: 13.01 MB / 0.8045 GB, free: 94.12 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002131/1.345, allocations: 44 kB / 0.8045 GB, free: 94.08 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1067) (initialization): time 0.03169/1.377, allocations: 15.46 MB / 0.8196 GB, free: 78.57 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001609/1.377, allocations: 72 kB / 0.8197 GB, free: 78.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002375/1.377, allocations: 156 kB / 0.8198 GB, free: 78.35 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01285/1.39, allocations: 4.104 MB / 0.8239 GB, free: 74.23 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006077/1.396, allocations: 1.801 MB / 0.8256 GB, free: 72.43 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02643/1.423, allocations: 19.61 MB / 0.8448 GB, free: 52.69 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006865/1.43, allocations: 0.4915 MB / 0.8452 GB, free: 52.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001212/1.431, allocations: 469.2 kB / 0.8457 GB, free: 51.74 MB / 0.5294 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.005469/1.436, allocations: 3.117 MB / 0.8487 GB, free: 48.61 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001243/1.438, allocations: 0.5245 MB / 0.8492 GB, free: 48.08 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01927/1.457, allocations: 9.618 MB / 0.8586 GB, free: 38.39 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.066e-05/1.457, allocations: 36 kB / 0.8587 GB, free: 38.36 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.363e-05/1.457, allocations: 19.31 kB / 0.8587 GB, free: 38.34 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.827e-05/1.457, allocations: 15.94 kB / 0.8587 GB, free: 38.33 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04172/1.499, allocations: 19.74 MB / 0.878 GB, free: 18.43 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.841e-05/1.499, allocations: 4 kB / 0.878 GB, free: 18.42 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002286/1.501, allocations: 499.2 kB / 0.8785 GB, free: 17.93 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01169/1.513, allocations: 3.662 MB / 0.882 GB, free: 14.26 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005679/1.514, allocations: 60 kB / 0.8821 GB, free: 14.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02315/1.537, allocations: 17.18 MB / 0.8989 GB, free: 12.89 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.834e-06/1.537, allocations: 7.938 kB / 0.8989 GB, free: 12.88 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2552/1.792, allocations: 14.21 MB / 0.9128 GB, free: 173.4 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001524/1.794, allocations: 0.5763 MB / 0.9133 GB, free: 173.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009636/1.795, allocations: 58.34 kB / 0.9134 GB, free: 173.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002825/1.797, allocations: 230.6 kB / 0.9136 GB, free: 173.3 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007919/1.798, allocations: 218.4 kB / 0.9138 GB, free: 173.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002688/1.798, allocations: 90.05 kB / 0.9139 GB, free: 173.3 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006828/1.805, allocations: 3.653 MB / 0.9175 GB, free: 172.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.8e-07/1.805, allocations: 0 / 0.9175 GB, free: 172.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008135/1.813, allocations: 1.679 MB / 0.9191 GB, free: 172.3 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.02532/1.839, allocations: 14.96 MB / 0.9337 GB, free: 166.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01127/1.85, allocations: 9.226 MB / 0.9427 GB, free: 162.8 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.219e-05/1.85, allocations: 0 / 0.9427 GB, free: 162.8 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00423/1.854, allocations: 3.647 MB / 0.9463 GB, free: 161.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009042/1.863, allocations: 0.7385 MB / 0.947 GB, free: 160.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1316/1.995, allocations: 96.14 MB / 1.041 GB, free: 60.56 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005212/2, allocations: 4.822 MB / 1.046 GB, free: 55.7 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007197/2.008, allocations: 2.589 MB / 1.048 GB, free: 53.11 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006765/2.014, allocations: 3.061 MB / 1.051 GB, free: 50.04 MB / 0.545 GB Notification: Performance of SimCode: time 1.833e-06/2.014, allocations: 3.938 kB / 1.051 GB, free: 50.04 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.409/2.423, allocations: 127.7 MB / 1.176 GB, free: 155.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000159/2.424, allocations: 228.7 kB / 1.176 GB, free: 155.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.33/7.754, allocations: 2.906 kB / 1.176 GB, free: 155.3 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