Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.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: translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001077/0.001077, allocations: 103.3 kB / 18.4 MB, free: 4.57 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.001002/0.001002, allocations: 192 kB / 19.34 MB, free: 3.637 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.365/1.365, allocations: 222.9 MB / 243 MB, free: 15.14 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.2185/0.2185, allocations: 44.17 MB / 337.4 MB, free: 2.711 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 60.98 kB / 409.9 MB, free: 26.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1166, allocations: 60.83 MB / 470.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.01334/0.13, allocations: 13.4 MB / 484.1 MB, free: 208 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009167/0.1392, allocations: 4.789 MB / 488.9 MB, free: 11.4 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002141/0.1413, allocations: 95.69 kB / 489 MB, free: 11.3 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007011/0.1484, allocations: 3.757 MB / 492.7 MB, free: 7.535 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006375/0.1548, allocations: 2.179 MB / 494.9 MB, free: 5.348 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002526/0.1573, allocations: 1.072 MB / 496 MB, free: 4.273 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008546/0.1659, allocations: 6.51 MB / 0.4907 GB, free: 13.75 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005279/0.1712, allocations: 4.522 MB / 0.4951 GB, free: 9.16 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003906/0.1751, allocations: 2.017 MB / 0.4971 GB, free: 7.137 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005658/0.1808, allocations: 2.749 MB / 0.4998 GB, free: 4.379 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001239/0.1821, allocations: 428 kB / 0.5002 GB, free: 3.961 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002899/0.185, allocations: 1.455 MB / 0.5016 GB, free: 2.504 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002384/0.1874, allocations: 2.451 MB / 0.504 GB, free: 48 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2281/0.4155, allocations: 2.777 MB / 0.5067 GB, free: 20.22 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01245/0.428, allocations: 8.808 MB / 0.5153 GB, free: 19.01 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.157e-06/0.4281, allocations: 1.781 kB / 0.5153 GB, free: 19.01 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.975e-06/0.4281, allocations: 2.125 kB / 0.5153 GB, free: 19.01 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003532/0.4285, allocations: 0 / 0.5153 GB, free: 19.01 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: 1729 * Number of variables: 1729 Notification: Performance of Generate backend data structure: time 0.02124/0.4497, allocations: 6.234 MB / 0.5214 GB, free: 16.66 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.962e-05/0.4498, allocations: 8.688 kB / 0.5214 GB, free: 16.66 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01169/0.4615, allocations: 2.53 MB / 0.5239 GB, free: 16.31 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01104/0.4726, allocations: 4.021 MB / 0.5278 GB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001919/0.4728, allocations: 284.7 kB / 0.5281 GB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001457/0.4742, allocations: 384.7 kB / 0.5285 GB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01925/0.4935, allocations: 12.01 MB / 0.5402 GB, free: 8.207 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001614/0.4937, allocations: 56.19 kB / 0.5402 GB, free: 8.195 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005168/0.4942, allocations: 179.9 kB / 0.5404 GB, free: 8.109 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002627/0.4969, allocations: 2.142 MB / 0.5425 GB, free: 7.309 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01972/0.5166, allocations: 10.37 MB / 0.5526 GB, free: 14.33 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06776/0.5844, allocations: 47.28 MB / 0.5988 GB, free: 14.36 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01442/0.5988, allocations: 5.824 MB / 0.6045 GB, free: 8.398 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003894/0.6028, allocations: 2.977 MB / 0.6074 GB, free: 5.41 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01453/0.6173, allocations: 8.864 MB / 0.6161 GB, free: 12.45 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.016e-05/0.6174, allocations: 67.61 kB / 0.6161 GB, free: 12.38 MB / 462.1 MB Notification: Performance of pre-optimization done (n=206): time 4.528e-06/0.6174, allocations: 0 / 0.6161 GB, free: 12.38 MB / 462.1 MB Notification: Performance of matching and sorting (n=262): time 0.1201/0.7376, allocations: 34.91 MB / 0.6502 GB, free: 9.531 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001068/0.7377, allocations: 209.2 kB / 0.6504 GB, free: 9.289 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006701/0.7444, allocations: 4.769 MB / 0.6551 GB, free: 4.516 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005748/0.745, allocations: 61.7 kB / 0.6551 GB, free: 4.449 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002306/0.7473, allocations: 3.549 MB / 0.6586 GB, free: 0.9023 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001321/0.7487, allocations: 0.9663 MB / 0.6595 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002338/0.751, allocations: 1.426 MB / 0.6609 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.028e-05/0.7511, allocations: 309.1 kB / 0.6612 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004797/0.7559, allocations: 3.172 MB / 0.6643 GB, free: 11.03 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007/0.7629, allocations: 7.05 MB / 0.6712 GB, free: 2.156 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01257/0.7755, allocations: 10.96 MB / 0.6819 GB, free: 5.863 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.702e-05/0.7756, allocations: 36 kB / 0.682 GB, free: 5.828 MB / 0.5137 GB Notification: Performance of matching and sorting (n=914) (initialization): time 0.02804/0.8037, allocations: 13.74 MB / 0.6954 GB, free: 8.391 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.537e-05/0.8038, allocations: 67.94 kB / 0.6954 GB, free: 8.324 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001252/0.804, allocations: 132 kB / 0.6956 GB, free: 8.195 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01203/0.816, allocations: 4.384 MB / 0.6998 GB, free: 3.801 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004843/0.8208, allocations: 1.478 MB / 0.7013 GB, free: 2.32 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2626/1.083, allocations: 29.02 MB / 0.7296 GB, free: 172.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005721/1.089, allocations: 411.8 kB / 0.73 GB, free: 172.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001042/1.09, allocations: 410.5 kB / 0.7304 GB, free: 172.1 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * Number of states: 0 () * Number of discrete variables: 42 (Universal1.cylinderColor[3],Universal1.cylinderColor[2],Universal1.cylinderColor[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[1],b3.color[3],b3.color[2],b3.color[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 (798): * Single equations (assignments): 792 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,50,50.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,21)} Notification: Performance of prepare postOptimizeDAE: time 0.004221/1.095, allocations: 2.467 MB / 0.7328 GB, free: 171.1 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001176/1.096, allocations: 436 kB / 0.7332 GB, free: 171.1 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01544/1.111, allocations: 8.483 MB / 0.7415 GB, free: 168.3 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.251e-05/1.111, allocations: 31.52 kB / 0.7415 GB, free: 168.3 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.075e-05/1.111, allocations: 11.25 kB / 0.7416 GB, free: 168.3 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-05/1.111, allocations: 11.91 kB / 0.7416 GB, free: 168.3 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03511/1.146, allocations: 17.02 MB / 0.7582 GB, free: 151.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.596e-05/1.147, allocations: 4 kB / 0.7582 GB, free: 151.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001541/1.148, allocations: 299.3 kB / 0.7585 GB, free: 151.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009861/1.158, allocations: 3.973 MB / 0.7624 GB, free: 147.6 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005311/1.159, allocations: 48 kB / 0.7624 GB, free: 147.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03138/1.19, allocations: 27.74 MB / 0.7895 GB, free: 119.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.793e-06/1.19, allocations: 7.938 kB / 0.7895 GB, free: 119.7 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02121/1.211, allocations: 12.42 MB / 0.8016 GB, free: 107.3 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001949/1.213, allocations: 496.2 kB / 0.8021 GB, free: 106.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001736/1.215, allocations: 48 kB / 0.8021 GB, free: 106.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003436/1.218, allocations: 176.6 kB / 0.8023 GB, free: 106.5 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009909/1.219, allocations: 190 kB / 0.8025 GB, free: 106.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003491/1.22, allocations: 75.92 kB / 0.8026 GB, free: 106.3 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006699/1.227, allocations: 3.006 MB / 0.8055 GB, free: 103.3 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.01e-07/1.227, allocations: 8 kB / 0.8055 GB, free: 103.3 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01064/1.237, allocations: 1.468 MB / 0.8069 GB, free: 101.8 MB / 0.5294 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 (158): * Single equations (assignments): 152 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,43,50.0%), (2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,25)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001038/1.238, allocations: 184 kB / 0.8071 GB, free: 101.6 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01439/1.253, allocations: 8.471 MB / 0.8154 GB, free: 93.13 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.918e-06/1.253, allocations: 3.938 kB / 0.8154 GB, free: 93.12 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005828/1.259, allocations: 3.536 MB / 0.8189 GB, free: 89.56 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0058/1.264, allocations: 0.5826 MB / 0.8194 GB, free: 88.99 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02637/1.291, allocations: 12.42 MB / 0.8315 GB, free: 76.49 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007734/1.299, allocations: 3.927 MB / 0.8354 GB, free: 72.54 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005486/1.304, allocations: 1.995 MB / 0.8373 GB, free: 70.54 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001392/1.306, allocations: 283.4 kB / 0.8376 GB, free: 70.26 MB / 0.5294 GB Notification: Performance of SimCode: time 1.242e-06/1.306, allocations: 0 / 0.8376 GB, free: 70.26 MB / 0.5294 GB Notification: Performance of Templates: time 0.354/1.66, allocations: 66.79 MB / 0.9028 GB, free: 175.9 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalAndUniversal/SphericalAndUniversal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches