Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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) 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(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000885/0.000885, allocations: 96.8 kB / 17.01 MB, free: 6.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001175/0.001176, allocations: 198.4 kB / 17.91 MB, free: 5.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 227.7 MB / 246.4 MB, free: 9.805 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002374/0.0002374, allocations: 12 kB / 307.1 MB, free: 0.9609 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09682/0.09707, allocations: 51.52 MB / 358.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.211/0.3081, allocations: 48.05 MB / 406.7 MB, free: 7.402 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02713/0.3353, allocations: 10.5 MB / 417.2 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01048/0.3458, allocations: 232 kB / 417.4 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009255/0.3551, allocations: 2.516 MB / 419.9 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02202/0.3772, allocations: 7.474 MB / 427.4 MB, free: 6.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003955/0.3812, allocations: 0.8581 MB / 428.3 MB, free: 5.461 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.07968/0.4609, allocations: 62.91 MB / 491.2 MB, free: 6.477 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00841/0.4693, allocations: 5.003 MB / 496.2 MB, free: 1.426 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003832/0.4732, allocations: 1.88 MB / 498.1 MB, free: 15.54 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004529/0.4778, allocations: 3.108 MB / 0.4894 GB, free: 12.42 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009499/0.4787, allocations: 236 kB / 0.4896 GB, free: 12.19 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002534/0.4813, allocations: 1.112 MB / 0.4907 GB, free: 11.08 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002528/0.4838, allocations: 2.536 MB / 0.4932 GB, free: 8.535 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001435/0.4853, allocations: 1.181 MB / 0.4944 GB, free: 7.344 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007443/0.4927, allocations: 7.88 MB / 0.5021 GB, free: 15.45 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.4927, allocations: 11.88 kB / 0.5021 GB, free: 15.43 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.4928, allocations: 0 / 0.5021 GB, free: 15.43 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002245/0.493, allocations: 0 / 0.5021 GB, free: 15.43 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01253/0.5055, allocations: 6.091 MB / 0.508 GB, free: 9.262 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.5056, allocations: 8.031 kB / 0.508 GB, free: 9.254 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01464/0.5202, allocations: 4.039 MB / 0.512 GB, free: 5.199 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008104/0.5283, allocations: 3.974 MB / 0.5158 GB, free: 1.164 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002343/0.5286, allocations: 324 kB / 0.5162 GB, free: 0.8438 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001074/0.5297, allocations: 427.7 kB / 0.5166 GB, free: 436 kB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2226/0.7523, allocations: 15.7 MB / 0.5319 GB, free: 146.3 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003589/0.7527, allocations: 57.66 kB / 0.5319 GB, free: 146.3 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001815/0.7546, allocations: 205.1 kB / 0.5321 GB, free: 146.3 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006005/0.7606, allocations: 3.214 MB / 0.5353 GB, free: 146.2 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02927/0.7899, allocations: 14.09 MB / 0.549 GB, free: 142.2 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06416/0.8541, allocations: 57.76 MB / 0.6055 GB, free: 87.37 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01218/0.8663, allocations: 6.553 MB / 0.6119 GB, free: 80.57 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004282/0.8706, allocations: 3.67 MB / 0.6154 GB, free: 76.88 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01925/0.8899, allocations: 14.66 MB / 0.6297 GB, free: 61.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.668e-05/0.89, allocations: 60.5 kB / 0.6298 GB, free: 61.73 MB / 446.1 MB Notification: Performance of pre-optimization done (n=289): time 5.3e-06/0.89, allocations: 0 / 0.6298 GB, free: 61.73 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.1269/1.017, allocations: 42.59 MB / 0.6714 GB, free: 19.11 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.318e-05/1.017, allocations: 219.3 kB / 0.6716 GB, free: 18.85 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00575/1.023, allocations: 5.427 MB / 0.6769 GB, free: 13.43 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006834/1.023, allocations: 74.33 kB / 0.677 GB, free: 13.36 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001822/1.025, allocations: 4.352 MB / 0.6812 GB, free: 9.008 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001111/1.026, allocations: 1.258 MB / 0.6825 GB, free: 7.762 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004698/1.027, allocations: 176 kB / 0.6826 GB, free: 7.59 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003217/1.027, allocations: 0.6944 MB / 0.6833 GB, free: 6.887 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005514/1.033, allocations: 4.773 MB / 0.688 GB, free: 2.105 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009487/1.042, allocations: 9.775 MB / 0.6975 GB, free: 5.879 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2082/1.25, allocations: 6.659 MB / 0.704 GB, free: 142.4 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001693/1.251, allocations: 52.78 kB / 0.7041 GB, free: 142.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04913/1.3, allocations: 19.5 MB / 0.7231 GB, free: 137.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002471/1.3, allocations: 81.91 kB / 0.7232 GB, free: 137.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003197/1.3, allocations: 172.3 kB / 0.7233 GB, free: 137.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02027/1.321, allocations: 5.998 MB / 0.7292 GB, free: 136.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00723/1.328, allocations: 2.114 MB / 0.7313 GB, free: 136.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02924/1.357, allocations: 24.75 MB / 0.7554 GB, free: 118 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007282/1.365, allocations: 0.5575 MB / 0.756 GB, free: 117.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001632/1.366, allocations: 0.5166 MB / 0.7565 GB, free: 116.9 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.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 (1098): * Single equations (assignments): 1090 * Array equations: 6 * 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 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005924/1.372, allocations: 3.098 MB / 0.7595 GB, free: 113.9 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001343/1.374, allocations: 0.4911 MB / 0.76 GB, free: 113.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02874/1.402, allocations: 12.92 MB / 0.7726 GB, free: 100.7 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001012/1.402, allocations: 61.62 kB / 0.7727 GB, free: 100.6 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.488e-05/1.403, allocations: 11.94 kB / 0.7727 GB, free: 100.6 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.24e-05/1.403, allocations: 15.95 kB / 0.7727 GB, free: 100.6 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04917/1.452, allocations: 24.62 MB / 0.7967 GB, free: 75.59 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.625e-05/1.452, allocations: 4 kB / 0.7968 GB, free: 75.59 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003/1.455, allocations: 0.5772 MB / 0.7973 GB, free: 75.01 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01725/1.472, allocations: 5.001 MB / 0.8022 GB, free: 70 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009258/1.473, allocations: 59.92 kB / 0.8023 GB, free: 69.95 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02158/1.495, allocations: 19.99 MB / 0.8218 GB, free: 49.77 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/1.495, allocations: 8.062 kB / 0.8218 GB, free: 49.76 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03014/1.525, allocations: 17.44 MB / 0.8388 GB, free: 32.15 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001282/1.526, allocations: 0.5375 MB / 0.8393 GB, free: 31.59 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009522/1.527, allocations: 56.7 kB / 0.8394 GB, free: 31.53 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002534/1.53, allocations: 269 kB / 0.8397 GB, free: 31.27 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000553/1.53, allocations: 189.6 kB / 0.8398 GB, free: 31.09 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002588/1.531, allocations: 85.02 kB / 0.8399 GB, free: 31 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004197/1.535, allocations: 3.367 MB / 0.8432 GB, free: 27.66 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.51e-07/1.535, allocations: 0 / 0.8432 GB, free: 27.66 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006456/1.541, allocations: 1.738 MB / 0.8449 GB, free: 25.93 MB / 462.1 MB 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 (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 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005062/1.542, allocations: 209.2 kB / 0.8451 GB, free: 25.71 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0127/1.554, allocations: 10.88 MB / 0.8557 GB, free: 14.84 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.971e-06/1.554, allocations: 8.062 kB / 0.8557 GB, free: 14.83 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00453/1.559, allocations: 4.09 MB / 0.8597 GB, free: 10.72 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003113/1.562, allocations: 0.5925 MB / 0.8603 GB, free: 10.14 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2036/1.766, allocations: 18.58 MB / 0.8784 GB, free: 151.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005987/1.772, allocations: 4.619 MB / 0.883 GB, free: 150.5 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.007688/1.78, allocations: 2.965 MB / 0.8859 GB, free: 150.4 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00142/1.781, allocations: 353 kB / 0.8862 GB, free: 150.4 MB / 478.1 MB Notification: Performance of SimCode: time 9.21e-07/1.781, allocations: 0 / 0.8862 GB, free: 150.4 MB / 478.1 MB Notification: Performance of Templates: time 0.104/1.885, allocations: 75.06 MB / 0.9595 GB, free: 92.18 MB / 478.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches