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.001602/0.001602, 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.001745/0.001745, 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.484/1.484, allocations: 227.4 MB / 246.8 MB, free: 10.6 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2326/0.2326, allocations: 46.1 MB / 344.1 MB, free: 11.58 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001569/0.001569, allocations: 82.86 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1235/0.1251, allocations: 62.45 MB / 480.1 MB, free: 5.168 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.01739/0.1425, allocations: 14.99 MB / 495.1 MB, free: 6.105 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0114/0.154, allocations: 4.823 MB / 499.9 MB, free: 1.27 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003622/0.1577, allocations: 91.75 kB / 0.4883 GB, free: 1.18 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006355/0.1641, allocations: 3.153 MB / 0.4914 GB, free: 14.02 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007624/0.1718, allocations: 2.517 MB / 0.4938 GB, free: 11.49 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002571/0.1743, allocations: 0.9866 MB / 0.4948 GB, free: 10.5 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01096/0.1853, allocations: 7.043 MB / 0.5017 GB, free: 3.449 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2607/0.4461, allocations: 4.374 MB / 0.506 GB, free: 14.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007372/0.4535, allocations: 2.211 MB / 0.5081 GB, free: 14.47 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008542/0.4622, allocations: 3.244 MB / 0.5113 GB, free: 14.14 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002511/0.4647, allocations: 485.6 kB / 0.5118 GB, free: 14.14 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005014/0.4698, allocations: 1.479 MB / 0.5132 GB, free: 14.14 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00504/0.4748, allocations: 2.835 MB / 0.516 GB, free: 13.85 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006896/0.4817, allocations: 3.294 MB / 0.5192 GB, free: 12.67 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01804/0.4998, allocations: 10.14 MB / 0.5291 GB, free: 9.129 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.219e-05/0.4999, allocations: 7.938 kB / 0.5291 GB, free: 9.121 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.4999, allocations: 0.625 kB / 0.5291 GB, free: 9.121 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005327/0.5005, allocations: 0 / 0.5291 GB, free: 9.121 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.02694/0.5274, allocations: 7.468 MB / 0.5364 GB, free: 4.32 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.359e-05/0.5275, allocations: 9.906 kB / 0.5364 GB, free: 4.32 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005431/0.5329, allocations: 1.141 MB / 0.5375 GB, free: 3.641 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04449/0.5775, allocations: 7.469 MB / 0.5448 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01371/0.5912, allocations: 4.621 MB / 0.5493 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004019/0.5917, allocations: 324.5 kB / 0.5496 GB, free: 11.72 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002643/0.5943, allocations: 435.8 kB / 0.55 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04922/0.6436, allocations: 15.63 MB / 0.5653 GB, free: 11.09 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004372/0.6441, allocations: 63.75 kB / 0.5654 GB, free: 11.05 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002875/0.647, allocations: 200.5 kB / 0.5656 GB, free: 10.91 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009257/0.6563, allocations: 3.222 MB / 0.5687 GB, free: 7.734 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.047/0.7033, allocations: 13.93 MB / 0.5823 GB, free: 10.02 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08852/0.7919, allocations: 57.38 MB / 0.6383 GB, free: 15.88 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01442/0.8064, allocations: 6.505 MB / 0.6447 GB, free: 9.137 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005468/0.8119, allocations: 3.625 MB / 0.6482 GB, free: 5.5 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02434/0.8362, allocations: 14.44 MB / 0.6623 GB, free: 6.629 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.591e-05/0.8363, allocations: 56.56 kB / 0.6624 GB, free: 6.566 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=289): time 6.102e-06/0.8363, allocations: 4 kB / 0.6624 GB, free: 6.562 MB / 0.4981 GB Notification: Performance of matching and sorting (n=339): time 0.1577/0.9941, allocations: 41.73 MB / 0.7032 GB, free: 12.9 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001491/0.9943, allocations: 216.7 kB / 0.7034 GB, free: 12.64 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01278/1.007, allocations: 5.486 MB / 0.7087 GB, free: 7.176 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001006/1.008, allocations: 72.75 kB / 0.7088 GB, free: 7.102 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004067/1.012, allocations: 4.407 MB / 0.7131 GB, free: 2.695 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002468/1.015, allocations: 1.252 MB / 0.7143 GB, free: 1.453 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2817/1.296, allocations: 1.774 MB / 0.716 GB, free: 192.2 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 6.196e-05/1.297, allocations: 303.2 kB / 0.7163 GB, free: 191.9 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008895/1.305, allocations: 4.647 MB / 0.7209 GB, free: 191.2 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01297/1.318, allocations: 9.615 MB / 0.7303 GB, free: 182.9 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01798/1.336, allocations: 15.3 MB / 0.7452 GB, free: 171.5 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002643/1.337, allocations: 51.44 kB / 0.7453 GB, free: 171.5 MB / 0.545 GB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.04725/1.384, allocations: 19.01 MB / 0.7638 GB, free: 164.2 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001296/1.384, allocations: 80.81 kB / 0.7639 GB, free: 164.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002307/1.384, allocations: 176 kB / 0.7641 GB, free: 163.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.022/1.406, allocations: 5.777 MB / 0.7697 GB, free: 160.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007173/1.414, allocations: 2.07 MB / 0.7717 GB, free: 158.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02697/1.441, allocations: 25.65 MB / 0.7968 GB, free: 133 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008361/1.449, allocations: 0.5438 MB / 0.7973 GB, free: 132.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001992/1.451, allocations: 0.5008 MB / 0.7978 GB, free: 132 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.008305/1.459, allocations: 3.101 MB / 0.8008 GB, free: 128.9 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001492/1.461, allocations: 0.4954 MB / 0.8013 GB, free: 128.7 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02934/1.49, allocations: 12.68 MB / 0.8137 GB, free: 116 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.211e-05/1.49, allocations: 57.78 kB / 0.8137 GB, free: 115.9 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.932e-05/1.49, allocations: 11.94 kB / 0.8138 GB, free: 115.9 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.979e-05/1.49, allocations: 22.56 kB / 0.8138 GB, free: 115.9 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04632/1.537, allocations: 24.36 MB / 0.8376 GB, free: 91.14 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.315e-05/1.537, allocations: 8.062 kB / 0.8376 GB, free: 91.13 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003098/1.54, allocations: 0.5811 MB / 0.8381 GB, free: 90.55 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01892/1.559, allocations: 4.81 MB / 0.8428 GB, free: 85.73 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006331/1.56, allocations: 57.62 kB / 0.8429 GB, free: 85.68 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02181/1.581, allocations: 20.9 MB / 0.8633 GB, free: 64.58 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.526e-06/1.581, allocations: 13.05 kB / 0.8633 GB, free: 64.57 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03226/1.614, allocations: 17.12 MB / 0.88 GB, free: 47.37 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001498/1.615, allocations: 0.526 MB / 0.8805 GB, free: 46.82 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001492/1.617, allocations: 52 kB / 0.8806 GB, free: 46.77 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003512/1.62, allocations: 262.5 kB / 0.8808 GB, free: 46.51 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000931/1.621, allocations: 193.7 kB / 0.881 GB, free: 46.32 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002979/1.622, allocations: 83.98 kB / 0.8811 GB, free: 46.24 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005785/1.627, allocations: 3.416 MB / 0.8844 GB, free: 42.84 MB / 0.545 GB Notification: Performance of sort global known variables: time 6.21e-07/1.627, allocations: 0 / 0.8844 GB, free: 42.84 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01066/1.638, allocations: 1.686 MB / 0.8861 GB, free: 41.16 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.03398/1.672, allocations: 17.79 MB / 0.9035 GB, free: 23.21 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.254/1.926, allocations: 15.42 MB / 0.9185 GB, free: 188.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.056e-05/1.926, allocations: 2.031 kB / 0.9185 GB, free: 188.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005958/1.932, allocations: 4.047 MB / 0.9225 GB, free: 187.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004437/1.937, allocations: 0.65 MB / 0.9231 GB, free: 187.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1555/2.092, allocations: 98.42 MB / 1.019 GB, free: 98.42 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00602/2.098, allocations: 4.626 MB / 1.024 GB, free: 93.76 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007174/2.105, allocations: 2.99 MB / 1.027 GB, free: 90.76 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004809/2.11, allocations: 2.917 MB / 1.03 GB, free: 87.85 MB / 0.545 GB Notification: Performance of SimCode: time 9.62e-07/2.11, allocations: 0 / 1.03 GB, free: 87.85 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4322/2.542, allocations: 130.7 MB / 1.157 GB, free: 164.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.55/15.09, allocations: 0 / 1.157 GB, free: 164.9 MB / 0.545 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.csv","/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