Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.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: translateModel(ModelicaTest.MultiBody.FourbarVariants.JointUSP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP") translateModel(ModelicaTest.MultiBody.FourbarVariants.JointUSP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000943/0.000943, allocations: 94.44 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001054/0.001054, allocations: 206.3 kB / 18.94 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 227.7 MB / 247.5 MB, free: 9.703 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1946/0.1946, allocations: 46.18 MB / 345.9 MB, free: 11.19 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000271/0.0002709, allocations: 4 kB / 420.2 MB, free: 19.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1106, allocations: 63.56 MB / 483.7 MB, free: 4.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.2971/0.4077, allocations: 66.29 MB / 0.5371 GB, free: 5.941 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03409/0.4419, allocations: 14 MB / 0.5508 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01695/0.4589, allocations: 308.3 kB / 0.5511 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002725/0.4617, allocations: 0.5991 MB / 0.5517 GB, free: 13.04 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008084/0.4698, allocations: 2.448 MB / 0.5541 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003628/0.4734, allocations: 1.274 MB / 0.5553 GB, free: 10.46 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01475/0.4882, allocations: 11.78 MB / 0.5668 GB, free: 1.668 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01524/0.5035, allocations: 9.52 MB / 0.5761 GB, free: 8.039 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004883/0.5084, allocations: 1.992 MB / 0.5781 GB, free: 6.039 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005999/0.5144, allocations: 3.368 MB / 0.5813 GB, free: 2.66 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001526/0.516, allocations: 240 kB / 0.5816 GB, free: 2.426 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004201/0.5202, allocations: 1.467 MB / 0.583 GB, free: 0.957 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004333/0.5246, allocations: 2.867 MB / 0.5858 GB, free: 14.08 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006093/0.5307, allocations: 3.154 MB / 0.5889 GB, free: 10.9 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01169/0.5424, allocations: 9.305 MB / 0.598 GB, free: 1.574 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.852e-06/0.5425, allocations: 4 kB / 0.598 GB, free: 1.57 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.886e-06/0.5425, allocations: 0 / 0.598 GB, free: 1.57 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004347/0.5429, allocations: 0 / 0.598 GB, free: 1.57 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2166 * Number of variables: 2166 Notification: Performance of Generate backend data structure: time 0.01629/0.5592, allocations: 6.494 MB / 0.6043 GB, free: 11 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.847e-05/0.5593, allocations: 12.88 kB / 0.6043 GB, free: 10.98 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0157/0.575, allocations: 3.108 MB / 0.6074 GB, free: 7.863 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01135/0.5864, allocations: 4.935 MB / 0.6122 GB, free: 2.848 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004257/0.5868, allocations: 382.4 kB / 0.6126 GB, free: 2.473 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001942/0.5888, allocations: 0.5113 MB / 0.6131 GB, free: 1.961 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03296/0.6218, allocations: 15.57 MB / 0.6283 GB, free: 1.488 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003044/0.6221, allocations: 63.44 kB / 0.6283 GB, free: 1.426 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001576/0.6237, allocations: 235.8 kB / 0.6285 GB, free: 1.195 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004366/0.6281, allocations: 2.548 MB / 0.631 GB, free: 14.64 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02933/0.6574, allocations: 13.15 MB / 0.6439 GB, free: 1.457 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08218/0.7397, allocations: 57.55 MB / 0.7001 GB, free: 6.316 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2575/0.9972, allocations: 6.425 MB / 0.7064 GB, free: 177.8 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005913/1.003, allocations: 3.443 MB / 0.7097 GB, free: 177.6 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02127/1.024, allocations: 11.65 MB / 0.7211 GB, free: 171.6 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.7e-05/1.025, allocations: 64.61 kB / 0.7211 GB, free: 171.6 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=248): time 5.871e-06/1.025, allocations: 1 kB / 0.7211 GB, free: 171.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=343): time 0.1309/1.156, allocations: 39.17 MB / 0.7594 GB, free: 149.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.352e-05/1.156, allocations: 243.9 kB / 0.7596 GB, free: 148.9 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007982/1.164, allocations: 5.702 MB / 0.7652 GB, free: 143.2 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007599/1.164, allocations: 77.7 kB / 0.7653 GB, free: 143.1 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002029/1.166, allocations: 4.337 MB / 0.7695 GB, free: 138.8 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001344/1.168, allocations: 1.257 MB / 0.7707 GB, free: 137.5 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009016/1.169, allocations: 0.7555 MB / 0.7715 GB, free: 136.8 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.421e-05/1.169, allocations: 305.1 kB / 0.7718 GB, free: 136.5 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004914/1.174, allocations: 4.097 MB / 0.7758 GB, free: 132.4 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006751/1.181, allocations: 8.67 MB / 0.7842 GB, free: 121.5 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01332/1.194, allocations: 13.57 MB / 0.7975 GB, free: 105.7 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001428/1.194, allocations: 44 kB / 0.7975 GB, free: 105.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1132) (initialization): time 0.0314/1.225, allocations: 16.39 MB / 0.8135 GB, free: 89.17 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001532/1.226, allocations: 72 kB / 0.8136 GB, free: 89.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002305/1.226, allocations: 160.1 kB / 0.8138 GB, free: 88.95 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01291/1.239, allocations: 4.283 MB / 0.8179 GB, free: 84.65 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006126/1.245, allocations: 1.899 MB / 0.8198 GB, free: 82.75 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02664/1.272, allocations: 20.19 MB / 0.8395 GB, free: 62.43 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00681/1.279, allocations: 0.5123 MB / 0.84 GB, free: 61.92 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001601/1.28, allocations: 482.8 kB / 0.8405 GB, free: 61.45 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 720 * Number of states: 0 () * Number of discrete variables: 46 (jointUSP.prismatic.positiveBranch,body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[1],ground_rod.color[3],ground_rod.color[2],ground_rod.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (1031): * Single equations (assignments): 1027 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,77,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005892/1.286, allocations: 3.116 MB / 0.8435 GB, free: 58.32 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001394/1.287, allocations: 0.5129 MB / 0.844 GB, free: 57.8 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02093/1.308, allocations: 10.11 MB / 0.8539 GB, free: 47.62 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.296e-05/1.309, allocations: 44.78 kB / 0.8539 GB, free: 47.58 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.176e-05/1.309, allocations: 12 kB / 0.854 GB, free: 47.57 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.16e-05/1.309, allocations: 19.94 kB / 0.854 GB, free: 47.55 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03987/1.349, allocations: 20.16 MB / 0.8737 GB, free: 27.21 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.063e-05/1.349, allocations: 4 kB / 0.8737 GB, free: 27.21 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002292/1.351, allocations: 0.4992 MB / 0.8742 GB, free: 26.71 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01191/1.363, allocations: 3.842 MB / 0.8779 GB, free: 22.86 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006552/1.364, allocations: 68 kB / 0.878 GB, free: 22.79 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0235/1.387, allocations: 17.78 MB / 0.8953 GB, free: 4.875 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.496e-06/1.387, allocations: 15.88 kB / 0.8953 GB, free: 4.859 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.27/1.657, allocations: 14.92 MB / 0.9099 GB, free: 172.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001509/1.659, allocations: 0.5751 MB / 0.9105 GB, free: 172.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001659/1.66, allocations: 64.39 kB / 0.9105 GB, free: 172.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003805/1.664, allocations: 241.7 kB / 0.9108 GB, free: 172.1 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009705/1.665, allocations: 222.5 kB / 0.911 GB, free: 172.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002922/1.665, allocations: 95.02 kB / 0.9111 GB, free: 172.1 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006262/1.672, allocations: 3.599 MB / 0.9146 GB, free: 171.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 5.71e-07/1.672, allocations: 0 / 0.9146 GB, free: 171.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007755/1.679, allocations: 1.767 MB / 0.9163 GB, free: 171.4 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 2 (revolute.phi,revolute.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 (261): * Single equations (assignments): 257 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,64,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008241/1.68, allocations: 250.9 kB / 0.9165 GB, free: 171.2 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01393/1.694, allocations: 9.817 MB / 0.9261 GB, free: 167.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.908e-06/1.694, allocations: 0 / 0.9261 GB, free: 167.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004768/1.699, allocations: 3.787 MB / 0.9298 GB, free: 165.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009807/1.709, allocations: 0.6989 MB / 0.9305 GB, free: 165.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02311/1.732, allocations: 19.8 MB / 0.9498 GB, free: 155.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004418/1.737, allocations: 4.787 MB / 0.9545 GB, free: 153.6 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001586/1.738, allocations: 406 kB / 0.9549 GB, free: 153.6 MB / 0.545 GB Notification: Performance of SimCode: time 7.71e-07/1.738, allocations: 3.344 kB / 0.9549 GB, free: 153.6 MB / 0.545 GB Notification: Performance of Templates: time 0.1251/1.863, allocations: 121.2 MB / 1.073 GB, free: 36.61 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/JointUSP/JointUSP.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches