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.001111/0.001111, 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.001311/0.001311, 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.4/1.4, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2189/0.2189, allocations: 46.1 MB / 344.1 MB, free: 11.58 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001512/0.001513, allocations: 79.64 kB / 417.7 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1186, allocations: 62.44 MB / 480.1 MB, free: 5.176 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.0165/0.1351, allocations: 15 MB / 495.1 MB, free: 6.109 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01069/0.1458, allocations: 4.831 MB / 499.9 MB, free: 1.266 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00297/0.1488, allocations: 91.75 kB / 0.4883 GB, free: 1.176 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005926/0.1548, allocations: 3.149 MB / 0.4914 GB, free: 14.02 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006406/0.1612, allocations: 2.514 MB / 0.4938 GB, free: 11.49 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002275/0.1635, allocations: 0.9866 MB / 0.4948 GB, free: 10.5 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009034/0.1726, allocations: 7.044 MB / 0.5017 GB, free: 3.449 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2347/0.4074, allocations: 4.37 MB / 0.506 GB, free: 14.6 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003997/0.4114, allocations: 2.211 MB / 0.5081 GB, free: 14.49 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004998/0.4164, allocations: 3.242 MB / 0.5113 GB, free: 14.16 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001958/0.4184, allocations: 486.4 kB / 0.5117 GB, free: 14.16 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004106/0.4225, allocations: 1.483 MB / 0.5132 GB, free: 14.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005467/0.428, allocations: 2.833 MB / 0.516 GB, free: 13.87 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008513/0.4365, allocations: 3.292 MB / 0.5192 GB, free: 12.7 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01318/0.4498, allocations: 10.14 MB / 0.5291 GB, free: 9.156 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.301e-06/0.4498, allocations: 3.938 kB / 0.5291 GB, free: 9.152 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.4498, allocations: 2.25 kB / 0.5291 GB, free: 9.152 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003623/0.4502, allocations: 0.9688 kB / 0.5291 GB, free: 9.152 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.01906/0.4693, allocations: 7.478 MB / 0.5364 GB, free: 4.344 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.4693, allocations: 10.53 kB / 0.5364 GB, free: 4.344 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002688/0.472, allocations: 1.135 MB / 0.5375 GB, free: 3.668 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04155/0.5136, allocations: 7.469 MB / 0.5448 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01194/0.5256, allocations: 4.63 MB / 0.5493 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002397/0.5258, allocations: 319.1 kB / 0.5496 GB, free: 11.71 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002239/0.5281, allocations: 433.2 kB / 0.55 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02758/0.5557, allocations: 15.63 MB / 0.5653 GB, free: 11.07 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001772/0.5559, allocations: 60.55 kB / 0.5654 GB, free: 11.04 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000806/0.5567, allocations: 203.7 kB / 0.5656 GB, free: 10.9 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005068/0.5618, allocations: 3.217 MB / 0.5687 GB, free: 7.727 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02814/0.59, allocations: 13.95 MB / 0.5823 GB, free: 10 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08115/0.6712, allocations: 57.37 MB / 0.6383 GB, free: 15.87 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01431/0.6855, allocations: 6.508 MB / 0.6447 GB, free: 9.121 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005377/0.691, allocations: 3.617 MB / 0.6482 GB, free: 5.488 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02735/0.7183, allocations: 14.44 MB / 0.6623 GB, free: 6.621 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.876e-05/0.7185, allocations: 60.56 kB / 0.6624 GB, free: 6.555 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=289): time 9.016e-06/0.7185, allocations: 0 / 0.6624 GB, free: 6.555 MB / 0.4981 GB Notification: Performance of matching and sorting (n=339): time 0.1549/0.8734, allocations: 41.73 MB / 0.7031 GB, free: 12.89 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/0.8736, allocations: 216.6 kB / 0.7034 GB, free: 12.64 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009965/0.8835, allocations: 5.486 MB / 0.7087 GB, free: 7.168 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0008587/0.8844, allocations: 76.98 kB / 0.7088 GB, free: 7.094 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.003252/0.8877, allocations: 4.405 MB / 0.7131 GB, free: 2.688 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.00216/0.8899, allocations: 1.258 MB / 0.7143 GB, free: 1.441 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2236/1.114, allocations: 1.77 MB / 0.716 GB, free: 192.4 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.443e-05/1.114, allocations: 301.8 kB / 0.7163 GB, free: 192.1 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007872/1.122, allocations: 4.648 MB / 0.7209 GB, free: 191.4 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01049/1.132, allocations: 9.612 MB / 0.7303 GB, free: 183.1 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01577/1.148, allocations: 15.31 MB / 0.7452 GB, free: 171.7 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002291/1.148, allocations: 56.25 kB / 0.7453 GB, free: 171.7 MB / 0.545 GB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.04394/1.192, allocations: 19.01 MB / 0.7638 GB, free: 164.3 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003898/1.192, allocations: 81 kB / 0.7639 GB, free: 164.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00042/1.193, allocations: 175.5 kB / 0.7641 GB, free: 164 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02147/1.214, allocations: 5.779 MB / 0.7697 GB, free: 160.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007268/1.222, allocations: 2.073 MB / 0.7717 GB, free: 158.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02818/1.25, allocations: 25.66 MB / 0.7968 GB, free: 133 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007619/1.258, allocations: 0.5357 MB / 0.7973 GB, free: 132.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001684/1.259, allocations: 0.5053 MB / 0.7978 GB, free: 131.9 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.006502/1.266, allocations: 3.094 MB / 0.8008 GB, free: 128.9 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001348/1.267, allocations: 0.5022 MB / 0.8013 GB, free: 128.7 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03025/1.297, allocations: 12.68 MB / 0.8137 GB, free: 115.9 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.462e-05/1.298, allocations: 59.98 kB / 0.8138 GB, free: 115.9 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.105e-05/1.298, allocations: 8 kB / 0.8138 GB, free: 115.9 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.781e-05/1.298, allocations: 17.58 kB / 0.8138 GB, free: 115.8 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05116/1.349, allocations: 24.36 MB / 0.8376 GB, free: 91.11 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.673e-05/1.349, allocations: 8.594 kB / 0.8376 GB, free: 91.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003205/1.352, allocations: 0.5811 MB / 0.8381 GB, free: 90.52 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01851/1.371, allocations: 4.803 MB / 0.8428 GB, free: 85.7 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008713/1.372, allocations: 66.3 kB / 0.8429 GB, free: 85.64 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02304/1.395, allocations: 20.89 MB / 0.8633 GB, free: 64.55 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.448e-06/1.395, allocations: 18.5 kB / 0.8633 GB, free: 64.53 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03443/1.429, allocations: 17.11 MB / 0.88 GB, free: 47.34 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001655/1.431, allocations: 0.5298 MB / 0.8805 GB, free: 46.79 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001796/1.433, allocations: 52 kB / 0.8806 GB, free: 46.73 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003808/1.436, allocations: 261.3 kB / 0.8808 GB, free: 46.48 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001297/1.438, allocations: 193.6 kB / 0.881 GB, free: 46.29 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006576/1.438, allocations: 86.09 kB / 0.8811 GB, free: 46.21 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006963/1.445, allocations: 3.42 MB / 0.8844 GB, free: 42.81 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.3e-07/1.445, allocations: 0 / 0.8844 GB, free: 42.81 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008987/1.454, allocations: 1.682 MB / 0.8861 GB, free: 41.13 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.03321/1.488, allocations: 17.79 MB / 0.9035 GB, free: 23.18 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.2251/1.713, allocations: 15.42 MB / 0.9185 GB, free: 188.7 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.575e-05/1.713, allocations: 0 / 0.9185 GB, free: 188.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006139/1.719, allocations: 4.055 MB / 0.9225 GB, free: 187.9 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004144/1.723, allocations: 0.6504 MB / 0.9231 GB, free: 187.6 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1422/1.865, allocations: 98.42 MB / 1.019 GB, free: 98.35 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005576/1.871, allocations: 4.623 MB / 1.024 GB, free: 93.7 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006824/1.878, allocations: 2.994 MB / 1.027 GB, free: 90.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004435/1.882, allocations: 2.913 MB / 1.03 GB, free: 87.79 MB / 0.545 GB Notification: Performance of SimCode: time 3.547e-06/1.882, allocations: 4 kB / 1.03 GB, free: 87.79 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4096/2.292, allocations: 130.7 MB / 1.157 GB, free: 164.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.66/13.95, allocations: 2.75 kB / 1.157 GB, free: 164.7 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 & /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