Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.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.UniversalSpherical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001074/0.001073, allocations: 93.84 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001665/0.001665, allocations: 203.8 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, allocations: 227.7 MB / 246.8 MB, free: 9.707 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2002/0.2002, allocations: 46.18 MB / 345.2 MB, free: 11.2 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002698/0.0002699, allocations: 4 kB / 419.6 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1214, allocations: 63.57 MB / 483.2 MB, free: 4.055 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.3016/0.4231, allocations: 51.69 MB / 0.5223 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02801/0.4511, allocations: 11.02 MB / 0.5331 GB, free: 6.785 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01195/0.4631, allocations: 233.3 kB / 0.5333 GB, free: 6.746 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002157/0.4653, allocations: 0.6096 MB / 0.5339 GB, free: 6.527 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006766/0.4721, allocations: 2.387 MB / 0.5362 GB, free: 5.746 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002428/0.4745, allocations: 0.9169 MB / 0.5371 GB, free: 5.438 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01144/0.486, allocations: 9.969 MB / 0.5469 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009204/0.4952, allocations: 5.797 MB / 0.5525 GB, free: 13.55 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003871/0.4991, allocations: 1.735 MB / 0.5542 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004754/0.5039, allocations: 3.134 MB / 0.5573 GB, free: 8.93 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00101/0.5049, allocations: 243.9 kB / 0.5575 GB, free: 8.691 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003073/0.508, allocations: 1.32 MB / 0.5588 GB, free: 7.422 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002731/0.5108, allocations: 2.608 MB / 0.5614 GB, free: 4.82 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004855/0.5157, allocations: 2.996 MB / 0.5643 GB, free: 1.812 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01079/0.5265, allocations: 9.758 MB / 0.5738 GB, free: 8.289 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.734e-06/0.5265, allocations: 0 / 0.5738 GB, free: 8.289 MB / 414.1 MB Notification: Performance of FrontEnd: time 4.007e-06/0.5265, allocations: 3.938 kB / 0.5738 GB, free: 8.285 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002946/0.5268, allocations: 3.938 kB / 0.5738 GB, free: 8.281 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01432/0.5411, allocations: 6.205 MB / 0.5799 GB, free: 2.035 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/0.5412, allocations: 12.88 kB / 0.5799 GB, free: 2.023 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002697/0.5439, allocations: 1.135 MB / 0.581 GB, free: 0.9297 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04561/0.5895, allocations: 7.599 MB / 0.5884 GB, free: 9.316 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01038/0.6, allocations: 4.617 MB / 0.5929 GB, free: 4.684 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003169/0.6003, allocations: 324 kB / 0.5932 GB, free: 4.422 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001818/0.6021, allocations: 435.5 kB / 0.5937 GB, free: 4.055 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03032/0.6325, allocations: 15.66 MB / 0.6089 GB, free: 3.648 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002516/0.6328, allocations: 63.38 kB / 0.609 GB, free: 3.586 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001459/0.6342, allocations: 199.9 kB / 0.6092 GB, free: 3.445 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00561/0.6399, allocations: 3.217 MB / 0.6123 GB, free: 252 kB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02759/0.6675, allocations: 13.96 MB / 0.626 GB, free: 2.258 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08346/0.751, allocations: 57.39 MB / 0.682 GB, free: 7.617 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01605/0.7671, allocations: 6.505 MB / 0.6884 GB, free: 0.8633 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00574/0.7729, allocations: 3.631 MB / 0.6919 GB, free: 13.22 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02527/0.7982, allocations: 14.43 MB / 0.706 GB, free: 14.34 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.389e-05/0.7983, allocations: 68.44 kB / 0.7061 GB, free: 14.27 MB / 0.545 GB Notification: Performance of pre-optimization done (n=289): time 8.005e-06/0.7984, allocations: 4 kB / 0.7061 GB, free: 14.26 MB / 0.545 GB Notification: Performance of matching and sorting (n=339): time 0.4021/1.2, allocations: 42.01 MB / 0.7471 GB, free: 187.5 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.799e-05/1.201, allocations: 213.3 kB / 0.7473 GB, free: 187.3 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01074/1.211, allocations: 5.484 MB / 0.7527 GB, free: 184.5 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0008965/1.212, allocations: 74.77 kB / 0.7527 GB, free: 184.4 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002763/1.215, allocations: 4.405 MB / 0.757 GB, free: 180.6 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001693/1.217, allocations: 1.255 MB / 0.7583 GB, free: 179.5 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001307/1.218, allocations: 0.7341 MB / 0.759 GB, free: 179.1 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.226e-05/1.218, allocations: 301.1 kB / 0.7593 GB, free: 178.8 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006204/1.224, allocations: 4.648 MB / 0.7638 GB, free: 176.4 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008319/1.233, allocations: 9.607 MB / 0.7732 GB, free: 164.5 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01524/1.248, allocations: 15.31 MB / 0.7881 GB, free: 146.7 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001687/1.248, allocations: 48 kB / 0.7882 GB, free: 146.7 MB / 0.545 GB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.04305/1.291, allocations: 19.03 MB / 0.8068 GB, free: 127.6 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002976/1.292, allocations: 83.94 kB / 0.8069 GB, free: 127.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003474/1.292, allocations: 172 kB / 0.807 GB, free: 127.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02258/1.315, allocations: 5.802 MB / 0.8127 GB, free: 121.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007367/1.322, allocations: 2.067 MB / 0.8147 GB, free: 119.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02801/1.35, allocations: 24.31 MB / 0.8384 GB, free: 94.89 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007901/1.358, allocations: 0.5521 MB / 0.839 GB, free: 94.34 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001721/1.36, allocations: 0.5 MB / 0.8395 GB, free: 93.84 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 789 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame4.color_x[3],fixedFrame4.color_x[2],fixedFrame4.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.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 (1058): * Single equations (assignments): 1050 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006514/1.366, allocations: 3.092 MB / 0.8425 GB, free: 90.73 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001476/1.368, allocations: 0.5009 MB / 0.843 GB, free: 90.23 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03119/1.399, allocations: 12.7 MB / 0.8554 GB, free: 77.46 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.562e-05/1.399, allocations: 55.98 kB / 0.8554 GB, free: 77.41 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.993e-05/1.399, allocations: 9.375 kB / 0.8554 GB, free: 77.4 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.11e-05/1.399, allocations: 15.95 kB / 0.8555 GB, free: 77.39 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05382/1.453, allocations: 24.44 MB / 0.8793 GB, free: 52.47 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.159e-05/1.453, allocations: 4.062 kB / 0.8793 GB, free: 52.46 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00307/1.456, allocations: 0.5811 MB / 0.8799 GB, free: 51.88 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01886/1.475, allocations: 4.839 MB / 0.8846 GB, free: 47.04 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009505/1.476, allocations: 56 kB / 0.8847 GB, free: 46.98 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02214/1.498, allocations: 19.56 MB / 0.9038 GB, free: 27.15 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.573e-06/1.498, allocations: 11.94 kB / 0.9038 GB, free: 27.14 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2608/1.759, allocations: 17.13 MB / 0.9205 GB, free: 176.8 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001464/1.761, allocations: 0.5347 MB / 0.921 GB, free: 176.7 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001633/1.762, allocations: 58.22 kB / 0.9211 GB, free: 176.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003761/1.766, allocations: 260.2 kB / 0.9213 GB, free: 176.7 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009566/1.767, allocations: 198.8 kB / 0.9215 GB, free: 176.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002866/1.767, allocations: 85.44 kB / 0.9216 GB, free: 176.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006489/1.774, allocations: 3.416 MB / 0.925 GB, free: 176.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.91e-07/1.774, allocations: 0 / 0.925 GB, free: 176.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009632/1.783, allocations: 1.69 MB / 0.9266 GB, free: 176.3 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.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 (254): * Single equations (assignments): 246 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0401/1.824, allocations: 17.8 MB / 0.944 GB, free: 169.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01549/1.839, allocations: 10.65 MB / 0.9544 GB, free: 165.8 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.414e-05/1.839, allocations: 3.938 kB / 0.9544 GB, free: 165.8 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005729/1.845, allocations: 4.05 MB / 0.9583 GB, free: 164.1 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01026/1.855, allocations: 0.625 MB / 0.959 GB, free: 163.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1714/2.027, allocations: 101.4 MB / 1.058 GB, free: 55.46 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006564/2.033, allocations: 4.623 MB / 1.062 GB, free: 50.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007081/2.04, allocations: 2.986 MB / 1.065 GB, free: 47.81 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004275/2.045, allocations: 2.921 MB / 1.068 GB, free: 44.89 MB / 0.545 GB Notification: Performance of SimCode: time 8.62e-07/2.045, allocations: 0 / 1.068 GB, free: 44.89 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4608/2.505, allocations: 125.8 MB / 1.191 GB, free: 152.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002074/2.506, allocations: 231 kB / 1.191 GB, free: 152.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.607/7.113, allocations: 4 kB / 1.191 GB, free: 152.5 MB / 0.5606 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/UniversalSpherical/UniversalSpherical.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches