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.001486/0.001486, allocations: 104.9 kB / 17.21 MB, free: 6.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002957/0.002957, allocations: 213.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, 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.2188/0.2188, allocations: 46.11 MB / 343.6 MB, free: 11.58 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00144/0.00144, allocations: 75.62 kB / 416.9 MB, free: 20.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1349, allocations: 62.44 MB / 479.4 MB, free: 5.613 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.3413/0.4763, allocations: 67.97 MB / 0.5345 GB, free: 5.34 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04051/0.5169, allocations: 14.08 MB / 0.5483 GB, free: 12.26 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01974/0.5367, allocations: 305.2 kB / 0.5486 GB, free: 12.21 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01075/0.5475, allocations: 5.114 MB / 0.5536 GB, free: 9.086 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01089/0.5585, allocations: 2.447 MB / 0.556 GB, free: 7.348 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004094/0.5626, allocations: 1.278 MB / 0.5572 GB, free: 6.5 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01645/0.579, allocations: 11.78 MB / 0.5687 GB, free: 11.88 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009385/0.5885, allocations: 6.872 MB / 0.5754 GB, free: 4.93 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005834/0.5943, allocations: 2.437 MB / 0.5778 GB, free: 2.484 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007018/0.6014, allocations: 3.942 MB / 0.5816 GB, free: 14.53 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001847/0.6033, allocations: 428 kB / 0.5821 GB, free: 14.11 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004041/0.6073, allocations: 1.65 MB / 0.5837 GB, free: 12.46 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004326/0.6117, allocations: 3.148 MB / 0.5867 GB, free: 9.305 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007696/0.6194, allocations: 3.554 MB / 0.5902 GB, free: 5.73 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01899/0.6384, allocations: 11.68 MB / 0.6016 GB, free: 10.02 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.023e-05/0.6385, allocations: 4 kB / 0.6016 GB, free: 10.02 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.6385, allocations: 3.938 kB / 0.6016 GB, free: 10.01 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004586/0.639, allocations: 0 / 0.6016 GB, free: 10.01 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.02771/0.6667, allocations: 8.158 MB / 0.6096 GB, free: 1.77 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.639e-05/0.6668, allocations: 16.86 kB / 0.6096 GB, free: 1.754 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004356/0.6711, allocations: 1.156 MB / 0.6107 GB, free: 0.5859 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07253/0.7437, allocations: 8.362 MB / 0.6189 GB, free: 8.199 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02171/0.7655, allocations: 5.76 MB / 0.6245 GB, free: 2.359 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006456/0.7662, allocations: 394.2 kB / 0.6249 GB, free: 1.973 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003574/0.7698, allocations: 0.5074 MB / 0.6254 GB, free: 1.465 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04247/0.8123, allocations: 15.41 MB / 0.6404 GB, free: 1.152 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004016/0.8127, allocations: 67.38 kB / 0.6405 GB, free: 1.086 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00215/0.8149, allocations: 231.8 kB / 0.6407 GB, free: 0.8594 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005282/0.8202, allocations: 2.548 MB / 0.6432 GB, free: 14.31 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03482/0.8551, allocations: 12.88 MB / 0.6558 GB, free: 1.402 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09725/0.9523, allocations: 57.19 MB / 0.7116 GB, free: 6.621 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01898/0.9714, allocations: 6.314 MB / 0.7178 GB, free: 164 kB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.2446/1.216, allocations: 3.314 MB / 0.7211 GB, free: 195.1 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01764/1.234, allocations: 11.36 MB / 0.7322 GB, free: 189.2 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.606e-05/1.234, allocations: 63.56 kB / 0.7322 GB, free: 189.2 MB / 0.545 GB Notification: Performance of pre-optimization done (n=245): time 5.37e-06/1.234, allocations: 0 / 0.7322 GB, free: 189.2 MB / 0.545 GB Notification: Performance of matching and sorting (n=338): time 0.1252/1.359, allocations: 39.5 MB / 0.7708 GB, free: 166.6 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.302e-05/1.359, allocations: 239.9 kB / 0.771 GB, free: 166.4 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007448/1.366, allocations: 5.733 MB / 0.7766 GB, free: 160.6 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0009131/1.367, allocations: 77.22 kB / 0.7767 GB, free: 160.6 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002215/1.37, allocations: 4.449 MB / 0.781 GB, free: 156.1 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001438/1.371, allocations: 1.234 MB / 0.7822 GB, free: 154.9 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002141/1.373, allocations: 1.631 MB / 0.7838 GB, free: 153.2 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 6.744e-05/1.373, allocations: 305.1 kB / 0.7841 GB, free: 152.9 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004418/1.378, allocations: 3.772 MB / 0.7878 GB, free: 149.2 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006712/1.384, allocations: 8.313 MB / 0.7959 GB, free: 138.6 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0119/1.396, allocations: 13 MB / 0.8086 GB, free: 123.4 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001/1.397, allocations: 44 kB / 0.8087 GB, free: 123.3 MB / 0.545 GB Notification: Performance of matching and sorting (n=1067) (initialization): time 0.02817/1.425, allocations: 15.46 MB / 0.8238 GB, free: 107.8 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001107/1.425, allocations: 78.12 kB / 0.8238 GB, free: 107.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001901/1.425, allocations: 156 kB / 0.824 GB, free: 107.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01252/1.438, allocations: 4.101 MB / 0.828 GB, free: 103.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005515/1.443, allocations: 1.801 MB / 0.8298 GB, free: 101.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0239/1.467, allocations: 19.6 MB / 0.8489 GB, free: 81.96 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006779/1.474, allocations: 499.3 kB / 0.8494 GB, free: 81.47 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001202/1.475, allocations: 464 kB / 0.8498 GB, free: 81.02 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.004795/1.48, allocations: 3.116 MB / 0.8529 GB, free: 77.89 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001105/1.481, allocations: 0.5283 MB / 0.8534 GB, free: 77.36 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01773/1.499, allocations: 9.618 MB / 0.8628 GB, free: 67.68 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.468e-05/1.499, allocations: 32 kB / 0.8628 GB, free: 67.64 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.512e-05/1.499, allocations: 16.84 kB / 0.8628 GB, free: 67.63 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-05/1.499, allocations: 15.94 kB / 0.8628 GB, free: 67.61 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0361/1.535, allocations: 19.74 MB / 0.8821 GB, free: 47.71 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.97e-05/1.535, allocations: 11.94 kB / 0.8821 GB, free: 47.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00232/1.538, allocations: 499.2 kB / 0.8826 GB, free: 47.21 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01134/1.549, allocations: 3.658 MB / 0.8862 GB, free: 43.55 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006417/1.55, allocations: 64 kB / 0.8862 GB, free: 43.49 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02158/1.571, allocations: 17.16 MB / 0.903 GB, free: 26.19 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.643e-06/1.571, allocations: 11.94 kB / 0.903 GB, free: 26.18 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2602/1.831, allocations: 14.21 MB / 0.9169 GB, free: 173.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001862/1.833, allocations: 0.563 MB / 0.9174 GB, free: 173.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001679/1.835, allocations: 62.67 kB / 0.9175 GB, free: 173.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003202/1.838, allocations: 231.7 kB / 0.9177 GB, free: 173.1 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009391/1.839, allocations: 218.4 kB / 0.9179 GB, free: 173.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002985/1.839, allocations: 96.94 kB / 0.918 GB, free: 173.1 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00696/1.846, allocations: 3.638 MB / 0.9216 GB, free: 172.9 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.21e-07/1.846, allocations: 0 / 0.9216 GB, free: 172.9 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009361/1.856, allocations: 1.684 MB / 0.9232 GB, free: 172.9 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.02885/1.885, allocations: 14.96 MB / 0.9378 GB, free: 167.6 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01286/1.898, allocations: 9.221 MB / 0.9468 GB, free: 164.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.017e-06/1.898, allocations: 0 / 0.9468 GB, free: 164.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004597/1.902, allocations: 3.649 MB / 0.9504 GB, free: 162.5 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004545/1.907, allocations: 0.7312 MB / 0.9511 GB, free: 162.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1416/2.048, allocations: 96.08 MB / 1.045 GB, free: 67.98 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007539/2.056, allocations: 4.822 MB / 1.05 GB, free: 63.12 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006174/2.062, allocations: 2.587 MB / 1.052 GB, free: 60.53 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003636/2.066, allocations: 3.065 MB / 1.055 GB, free: 57.46 MB / 0.545 GB Notification: Performance of SimCode: time 8.72e-07/2.066, allocations: 0 / 1.055 GB, free: 57.46 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4159/2.482, allocations: 129.7 MB / 1.182 GB, free: 162.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000181/2.482, allocations: 221.9 kB / 1.182 GB, free: 162.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.796/8.278, allocations: 4 kB / 1.182 GB, free: 162.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