Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001204/0.001204, allocations: 113.4 kB / 17.78 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001305/0.001305, allocations: 184.9 kB / 18.71 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.411/1.411, allocations: 222.9 MB / 242.4 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.214/0.214, allocations: 44.19 MB / 336.7 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 63.91 kB / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3734/0.3748, allocations: 60.82 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.01474/0.3896, allocations: 15.04 MB / 0.5331 GB, free: 8.492 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01129/0.4009, allocations: 4.817 MB / 0.5378 GB, free: 4.723 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002884/0.4038, allocations: 92.53 kB / 0.5379 GB, free: 4.707 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006042/0.4099, allocations: 3.169 MB / 0.541 GB, free: 2.562 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006846/0.4168, allocations: 2.542 MB / 0.5435 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002473/0.4193, allocations: 0.9927 MB / 0.5444 GB, free: 108 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01241/0.4317, allocations: 6.974 MB / 0.5512 GB, free: 10.39 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006641/0.4384, allocations: 4.373 MB / 0.5555 GB, free: 5.949 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004374/0.4428, allocations: 2.223 MB / 0.5577 GB, free: 3.719 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004925/0.4477, allocations: 3.26 MB / 0.5609 GB, free: 460 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001843/0.4496, allocations: 484 kB / 0.5613 GB, free: 15.97 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004222/0.4538, allocations: 1.51 MB / 0.5628 GB, free: 14.46 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004328/0.4582, allocations: 2.887 MB / 0.5656 GB, free: 11.57 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006716/0.4649, allocations: 3.317 MB / 0.5689 GB, free: 8.234 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01379/0.4787, allocations: 10.6 MB / 0.5792 GB, free: 13.6 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.215e-06/0.4787, allocations: 4 kB / 0.5792 GB, free: 13.59 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.4788, allocations: 0 / 0.5792 GB, free: 13.59 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003691/0.4791, allocations: 0 / 0.5792 GB, free: 13.59 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.0205/0.4996, allocations: 7.494 MB / 0.5865 GB, free: 6.016 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.4997, allocations: 8.031 kB / 0.5865 GB, free: 6.008 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003539/0.5033, allocations: 1.141 MB / 0.5877 GB, free: 4.852 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04597/0.5492, allocations: 7.465 MB / 0.5949 GB, free: 13.36 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01296/0.5622, allocations: 4.915 MB / 0.5997 GB, free: 8.387 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003286/0.5626, allocations: 324.2 kB / 0.6001 GB, free: 8.066 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001994/0.5646, allocations: 431.7 kB / 0.6005 GB, free: 7.645 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03252/0.5971, allocations: 15.63 MB / 0.6157 GB, free: 7.086 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000293/0.5975, allocations: 63.45 kB / 0.6158 GB, free: 7.023 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001777/0.5993, allocations: 203.8 kB / 0.616 GB, free: 6.824 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005363/0.6046, allocations: 3.223 MB / 0.6191 GB, free: 3.598 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02841/0.6331, allocations: 13.95 MB / 0.6328 GB, free: 5.625 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08827/0.7214, allocations: 57.1 MB / 0.6885 GB, free: 10.96 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0149/0.7363, allocations: 6.514 MB / 0.6949 GB, free: 4.199 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005314/0.7417, allocations: 3.636 MB / 0.6984 GB, free: 0.5547 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02727/0.769, allocations: 14.41 MB / 0.7125 GB, free: 1.586 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.467e-05/0.7691, allocations: 60.56 kB / 0.7126 GB, free: 1.516 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=289): time 6.101e-06/0.7691, allocations: 0 / 0.7126 GB, free: 1.516 MB / 0.5606 GB Notification: Performance of matching and sorting (n=339): time 0.4192/1.188, allocations: 41.76 MB / 0.7533 GB, free: 151.2 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.655e-05/1.188, allocations: 217.9 kB / 0.7535 GB, free: 151 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006855/1.195, allocations: 5.482 MB / 0.7589 GB, free: 145.5 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007228/1.196, allocations: 73.7 kB / 0.759 GB, free: 145.4 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001972/1.198, allocations: 4.417 MB / 0.7633 GB, free: 141 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001168/1.199, allocations: 1.256 MB / 0.7645 GB, free: 139.8 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002061/1.201, allocations: 1.777 MB / 0.7662 GB, free: 138 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.234e-05/1.201, allocations: 305.1 kB / 0.7665 GB, free: 137.7 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004942/1.206, allocations: 4.644 MB / 0.7711 GB, free: 133 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006441/1.213, allocations: 9.611 MB / 0.7805 GB, free: 121 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01287/1.226, allocations: 15.3 MB / 0.7954 GB, free: 103.2 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001123/1.226, allocations: 52 kB / 0.7954 GB, free: 103.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.03855/1.264, allocations: 19.01 MB / 0.814 GB, free: 84.12 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001069/1.264, allocations: 82.34 kB / 0.8141 GB, free: 84.04 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001714/1.265, allocations: 175.9 kB / 0.8143 GB, free: 83.87 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02176/1.286, allocations: 5.772 MB / 0.8199 GB, free: 78.09 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006828/1.293, allocations: 2.066 MB / 0.8219 GB, free: 76.02 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02718/1.32, allocations: 25.66 MB / 0.847 GB, free: 50.08 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008828/1.329, allocations: 0.5492 MB / 0.8475 GB, free: 49.53 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001772/1.331, allocations: 0.5 MB / 0.848 GB, free: 49.03 MB / 0.5606 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.005263/1.336, allocations: 3.093 MB / 0.851 GB, free: 45.93 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001055/1.337, allocations: 0.4974 MB / 0.8515 GB, free: 45.42 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02855/1.366, allocations: 12.68 MB / 0.8639 GB, free: 32.68 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001177/1.366, allocations: 52 kB / 0.8639 GB, free: 32.63 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.783e-05/1.366, allocations: 12 kB / 0.8639 GB, free: 32.62 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.803e-05/1.366, allocations: 23.86 kB / 0.864 GB, free: 32.59 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04627/1.413, allocations: 24.3 MB / 0.8877 GB, free: 7.816 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.977e-05/1.413, allocations: 15.98 kB / 0.8877 GB, free: 7.801 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003142/1.416, allocations: 0.5771 MB / 0.8883 GB, free: 7.223 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.019/1.435, allocations: 4.814 MB / 0.893 GB, free: 2.398 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006735/1.436, allocations: 59.69 kB / 0.893 GB, free: 2.344 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02682/1.462, allocations: 20.89 MB / 0.9134 GB, free: 13.18 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.588e-06/1.462, allocations: 7.938 kB / 0.9134 GB, free: 13.17 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03849/1.501, allocations: 17.12 MB / 0.9302 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001672/1.503, allocations: 0.5296 MB / 0.9307 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001709/1.504, allocations: 55.83 kB / 0.9307 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003939/1.508, allocations: 259.6 kB / 0.931 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001222/1.51, allocations: 193.7 kB / 0.9312 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006295/1.51, allocations: 84.47 kB / 0.9312 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.006748/1.517, allocations: 3.42 MB / 0.9346 GB, free: 7.355 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.7e-07/1.517, allocations: 0 / 0.9346 GB, free: 7.355 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.008407/1.525, allocations: 1.72 MB / 0.9363 GB, free: 5.645 MB / 0.6075 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.3037/1.829, allocations: 17.78 MB / 0.9536 GB, free: 193.6 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.01624/1.845, allocations: 10.69 MB / 0.9641 GB, free: 189.7 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.208e-05/1.846, allocations: 0 / 0.9641 GB, free: 189.7 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.006113/1.852, allocations: 4.049 MB / 0.968 GB, free: 187.9 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004265/1.856, allocations: 0.6526 MB / 0.9686 GB, free: 187.6 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1466/2.003, allocations: 86.11 MB / 1.053 GB, free: 105.1 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005937/2.009, allocations: 4.615 MB / 1.057 GB, free: 100.4 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.006695/2.015, allocations: 2.991 MB / 1.06 GB, free: 97.43 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00484/2.02, allocations: 2.924 MB / 1.063 GB, free: 94.5 MB / 0.6075 GB Notification: Performance of SimCode: time 2.144e-06/2.02, allocations: 0 / 1.063 GB, free: 94.5 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4851/2.505, allocations: 127.9 MB / 1.188 GB, free: 205.7 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 38.93/41.43, allocations: 4.609 kB / 1.188 GB, free: 205.7 MB / 0.6231 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches