Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001173/0.001173, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.379/1.379, allocations: 225.6 MB / 234.8 MB, free: 3.273 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000932/0.0009321, allocations: 99.42 kB / 286.7 MB, free: 5.273 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2/0.2, allocations: 45.13 MB / 383.7 MB, free: 272 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.471e-05/1.472e-05, allocations: 7.984 kB / 453.2 MB, free: 75.83 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1138, allocations: 63.24 MB / 0.5044 GB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4453/0.5592, allocations: 108.7 MB / 0.6105 GB, free: 10.22 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002715/0.5595, allocations: 75.22 kB / 0.6106 GB, free: 10.18 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2537/0.8132, allocations: 96.97 MB / 0.7052 GB, free: 1.23 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.8133, allocations: 0 / 0.7052 GB, free: 1.23 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003543/0.8136, allocations: 87.98 kB / 0.7053 GB, free: 1.145 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.01661/0.8303, allocations: 4.62 MB / 0.7098 GB, free: 12.45 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.945e-05/0.8303, allocations: 12.03 kB / 0.7099 GB, free: 12.44 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02709/0.8574, allocations: 6.725 MB / 0.7164 GB, free: 5.699 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01505/0.8725, allocations: 5.368 MB / 0.7217 GB, free: 276 kB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003085/0.8729, allocations: 140 kB / 0.7218 GB, free: 136 kB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001929/0.8748, allocations: 263.9 kB / 0.722 GB, free: 15.87 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01388/0.8887, allocations: 6.588 MB / 0.7285 GB, free: 9.277 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0222/0.911, allocations: 9.572 MB / 0.7378 GB, free: 14.68 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000345/0.9113, allocations: 67.45 kB / 0.7379 GB, free: 14.62 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001716/0.9131, allocations: 28 kB / 0.7379 GB, free: 14.59 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001576/0.9147, allocations: 1.022 MB / 0.7389 GB, free: 13.56 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3508/1.266, allocations: 45.97 MB / 0.7838 GB, free: 103.6 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005289/1.271, allocations: 3.077 MB / 0.7868 GB, free: 103 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002568/1.273, allocations: 1.728 MB / 0.7885 GB, free: 102.9 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001771/1.275, allocations: 1.931 MB / 0.7904 GB, free: 101.3 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.793e-05/1.275, allocations: 52.03 kB / 0.7904 GB, free: 101.3 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=186): time 5.921e-06/1.275, allocations: 1.5 kB / 0.7904 GB, free: 101.3 MB / 0.5261 GB Notification: Performance of matching and sorting (n=242): time 0.06334/1.339, allocations: 26.15 MB / 0.816 GB, free: 98.55 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001072/1.339, allocations: 207.1 kB / 0.8162 GB, free: 98.32 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005/1.344, allocations: 3.265 MB / 0.8194 GB, free: 97.12 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.000639/1.344, allocations: 25.7 kB / 0.8194 GB, free: 97.09 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0019/1.346, allocations: 3.273 MB / 0.8226 GB, free: 94.91 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001041/1.347, allocations: 0.8723 MB / 0.8234 GB, free: 94.26 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003049/1.348, allocations: 3.781 kB / 0.8234 GB, free: 94.26 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002921/1.348, allocations: 0.5817 MB / 0.824 GB, free: 93.84 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003481/1.352, allocations: 3.309 MB / 0.8272 GB, free: 92.52 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004968/1.357, allocations: 7.054 MB / 0.8341 GB, free: 86.15 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005482/1.362, allocations: 4.718 MB / 0.8387 GB, free: 84.54 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.084e-05/1.362, allocations: 35.28 kB / 0.8388 GB, free: 84.54 MB / 0.5261 GB Notification: Performance of matching and sorting (n=855) (initialization): time 0.03298/1.395, allocations: 14.68 MB / 0.8531 GB, free: 80.44 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 8.19e-05/1.395, allocations: 63.75 kB / 0.8532 GB, free: 80.44 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001262/1.395, allocations: 138.2 kB / 0.8533 GB, free: 80.44 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02118/1.417, allocations: 5.918 MB / 0.8591 GB, free: 79.54 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005524/1.422, allocations: 1.497 MB / 0.8605 GB, free: 79.32 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02549/1.448, allocations: 22.9 MB / 0.8829 GB, free: 59.43 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00618/1.454, allocations: 280.6 kB / 0.8832 GB, free: 59.22 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001744/1.456, allocations: 389.8 kB / 0.8835 GB, free: 58.85 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 608 * Number of states: 0 () * Number of discrete variables: 42 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (778): * Single equations (assignments): 773 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 51} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00232/1.458, allocations: 452.7 kB / 0.884 GB, free: 58.41 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001222/1.459, allocations: 371.2 kB / 0.8843 GB, free: 58.04 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02657/1.486, allocations: 10.56 MB / 0.8946 GB, free: 50.5 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.012e-05/1.486, allocations: 24.62 kB / 0.8947 GB, free: 50.47 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.678e-05/1.486, allocations: 16 kB / 0.8947 GB, free: 50.46 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.601e-05/1.486, allocations: 11.95 kB / 0.8947 GB, free: 50.45 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04195/1.528, allocations: 19.45 MB / 0.9137 GB, free: 30.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.468e-05/1.528, allocations: 11.98 kB / 0.9137 GB, free: 30.56 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002137/1.53, allocations: 388 kB / 0.9141 GB, free: 30.18 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01822/1.548, allocations: 4.97 MB / 0.9189 GB, free: 25.21 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007381/1.549, allocations: 12 kB / 0.9189 GB, free: 25.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02167/1.571, allocations: 18.45 MB / 0.937 GB, free: 6.52 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.06e-05/1.571, allocations: 7.938 kB / 0.937 GB, free: 6.512 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02981/1.601, allocations: 14.35 MB / 0.951 GB, free: 7.906 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001504/1.602, allocations: 408.2 kB / 0.9514 GB, free: 7.484 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001383/1.604, allocations: 4 kB / 0.9514 GB, free: 7.48 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003341/1.607, allocations: 135.8 kB / 0.9515 GB, free: 7.348 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009624/1.608, allocations: 161 kB / 0.9517 GB, free: 7.191 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005167/1.609, allocations: 67.98 kB / 0.9517 GB, free: 7.125 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.006142/1.615, allocations: 2.199 MB / 0.9539 GB, free: 4.914 MB / 0.5417 GB Notification: Performance of sort global known variables: time 3.7e-07/1.615, allocations: 0 / 0.9539 GB, free: 4.914 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.008075/1.623, allocations: 1.168 MB / 0.955 GB, free: 3.754 MB / 0.5417 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (173): * Single equations (assignments): 168 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 45} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007915/1.624, allocations: 167.2 kB / 0.9552 GB, free: 3.59 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.3168/1.941, allocations: 7.627 MB / 0.9626 GB, free: 136.7 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.017e-05/1.941, allocations: 1.406 kB / 0.9626 GB, free: 136.7 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005443/1.946, allocations: 3.018 MB / 0.9656 GB, free: 136.5 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003244/1.949, allocations: 406.3 kB / 0.9659 GB, free: 136.5 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02085/1.97, allocations: 9.836 MB / 0.9756 GB, free: 134.8 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005245/1.976, allocations: 3.606 MB / 0.9791 GB, free: 134 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.005325/1.981, allocations: 2.049 MB / 0.9811 GB, free: 134 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009849/1.982, allocations: 257.6 kB / 0.9813 GB, free: 134 MB / 0.5417 GB Notification: Performance of SimCode: time 1.833e-06/1.982, allocations: 0 / 0.9813 GB, free: 134 MB / 0.5417 GB Notification: Performance of Templates: time 0.09025/2.072, allocations: 59.31 MB / 1.039 GB, free: 122.1 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches