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.001736/0.001735, allocations: 117 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001775/0.001775, allocations: 204.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.41/1.41, allocations: 227.4 MB / 247.5 MB, free: 10.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 59.28 kB / 308.4 MB, free: 15.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1064, allocations: 50.53 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.2028/0.3093, allocations: 14.97 MB / 373.9 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01195/0.3213, allocations: 4.828 MB / 378.7 MB, free: 9.477 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003678/0.325, allocations: 92.75 kB / 378.8 MB, free: 9.461 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006667/0.3317, allocations: 3.161 MB / 382 MB, free: 8.512 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008433/0.3402, allocations: 2.518 MB / 384.5 MB, free: 7.621 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003289/0.3435, allocations: 0.9896 MB / 385.5 MB, free: 7.281 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01211/0.3556, allocations: 7.038 MB / 392.5 MB, free: 4.504 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007391/0.3631, allocations: 4.338 MB / 396.8 MB, free: 2.047 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006184/0.3693, allocations: 2.215 MB / 399 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007869/0.3772, allocations: 3.229 MB / 402.3 MB, free: 15 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002549/0.3798, allocations: 484 kB / 402.8 MB, free: 14.53 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004856/0.3847, allocations: 1.482 MB / 404.2 MB, free: 13.1 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005037/0.3897, allocations: 2.83 MB / 407.1 MB, free: 10.28 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01059/0.4004, allocations: 3.222 MB / 410.3 MB, free: 7.047 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01853/0.4189, allocations: 10.35 MB / 420.6 MB, free: 12.92 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.021e-05/0.419, allocations: 0 / 420.6 MB, free: 12.92 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.419, allocations: 0 / 420.6 MB, free: 12.92 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0004779/0.4195, allocations: 0 / 420.6 MB, free: 12.92 MB / 334.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.02191/0.4414, allocations: 7.247 MB / 427.9 MB, free: 5.703 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.925e-05/0.4415, allocations: 8.031 kB / 427.9 MB, free: 5.695 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01561/0.4571, allocations: 3.939 MB / 431.8 MB, free: 1.742 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01177/0.4689, allocations: 4.106 MB / 435.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003207/0.4693, allocations: 316.6 kB / 436.2 MB, free: 13.26 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002274/0.4716, allocations: 443.4 kB / 436.7 MB, free: 12.83 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03074/0.5023, allocations: 15.71 MB / 452.4 MB, free: 12.18 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002992/0.5027, allocations: 55.47 kB / 452.4 MB, free: 12.13 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001552/0.5043, allocations: 203.8 kB / 452.6 MB, free: 11.93 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005328/0.5096, allocations: 3.224 MB / 455.9 MB, free: 8.699 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0284/0.538, allocations: 14.12 MB / 470 MB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08436/0.6224, allocations: 57.48 MB / 0.5151 GB, free: 15.49 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01416/0.6367, allocations: 6.57 MB / 0.5215 GB, free: 8.664 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005437/0.6421, allocations: 3.685 MB / 0.5251 GB, free: 4.965 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2349/0.8771, allocations: 14.63 MB / 0.5394 GB, free: 136.4 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.602e-05/0.8772, allocations: 63.73 kB / 0.5395 GB, free: 136.3 MB / 446.1 MB Notification: Performance of pre-optimization done (n=289): time 6.602e-06/0.8772, allocations: 0.5938 kB / 0.5395 GB, free: 136.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.1305/1.008, allocations: 42.34 MB / 0.5808 GB, free: 112.8 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.088e-05/1.008, allocations: 210 kB / 0.581 GB, free: 112.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005894/1.014, allocations: 5.462 MB / 0.5864 GB, free: 107.1 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007136/1.015, allocations: 73.7 kB / 0.5864 GB, free: 107 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001728/1.016, allocations: 4.351 MB / 0.5907 GB, free: 102.7 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001288/1.018, allocations: 1.258 MB / 0.5919 GB, free: 101.4 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002223/1.02, allocations: 1.856 MB / 0.5937 GB, free: 99.56 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.061e-05/1.02, allocations: 305.1 kB / 0.594 GB, free: 99.26 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005466/1.025, allocations: 4.808 MB / 0.5987 GB, free: 94.44 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007732/1.033, allocations: 9.802 MB / 0.6083 GB, free: 82.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0149/1.048, allocations: 15.57 MB / 0.6235 GB, free: 64.16 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001214/1.048, allocations: 48 kB / 0.6235 GB, free: 64.12 MB / 446.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.03892/1.087, allocations: 19.57 MB / 0.6426 GB, free: 44.51 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.993e-05/1.087, allocations: 80 kB / 0.6427 GB, free: 44.43 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001306/1.087, allocations: 176.1 kB / 0.6429 GB, free: 44.26 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01928/1.107, allocations: 5.945 MB / 0.6487 GB, free: 38.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006559/1.113, allocations: 2.109 MB / 0.6507 GB, free: 36.19 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02731/1.141, allocations: 26.14 MB / 0.6763 GB, free: 9.758 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007685/1.148, allocations: 0.5539 MB / 0.6768 GB, free: 9.203 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001847/1.15, allocations: 0.5104 MB / 0.6773 GB, free: 8.695 MB / 446.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 (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.005812/1.156, allocations: 3.106 MB / 0.6803 GB, free: 5.582 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001066/1.157, allocations: 497.5 kB / 0.6808 GB, free: 5.09 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2556/1.413, allocations: 12.92 MB / 0.6934 GB, free: 137.4 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000142/1.413, allocations: 55.08 kB / 0.6935 GB, free: 137.4 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.869e-05/1.413, allocations: 8.75 kB / 0.6935 GB, free: 137.4 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.777e-05/1.413, allocations: 15.08 kB / 0.6935 GB, free: 137.4 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05426/1.467, allocations: 24.51 MB / 0.7175 GB, free: 129.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.083e-05/1.467, allocations: 3.969 kB / 0.7175 GB, free: 129.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003032/1.47, allocations: 0.5791 MB / 0.718 GB, free: 129.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01761/1.488, allocations: 4.969 MB / 0.7229 GB, free: 128.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000768/1.489, allocations: 58.11 kB / 0.7229 GB, free: 128.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02332/1.512, allocations: 21.37 MB / 0.7438 GB, free: 116.6 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.567e-06/1.512, allocations: 10.38 kB / 0.7438 GB, free: 116.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03045/1.543, allocations: 17.45 MB / 0.7608 GB, free: 101 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002013/1.545, allocations: 0.5317 MB / 0.7614 GB, free: 100.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001055/1.546, allocations: 55.98 kB / 0.7614 GB, free: 100.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002655/1.549, allocations: 263.3 kB / 0.7617 GB, free: 100.4 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007956/1.549, allocations: 197.1 kB / 0.7619 GB, free: 100.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002757/1.55, allocations: 83.98 kB / 0.7619 GB, free: 100.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004464/1.554, allocations: 3.398 MB / 0.7653 GB, free: 96.79 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.4e-07/1.554, allocations: 0 / 0.7653 GB, free: 96.79 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.007713/1.562, allocations: 1.727 MB / 0.7669 GB, free: 95.07 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 (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.0006803/1.563, allocations: 213.7 kB / 0.7671 GB, free: 94.87 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01318/1.576, allocations: 10.97 MB / 0.7779 GB, free: 83.97 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.132e-05/1.576, allocations: 9.578 kB / 0.7779 GB, free: 83.97 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004792/1.581, allocations: 4.097 MB / 0.7819 GB, free: 79.88 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003518/1.584, allocations: 0.6171 MB / 0.7825 GB, free: 79.29 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02336/1.607, allocations: 16.01 MB / 0.7981 GB, free: 63.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006452/1.614, allocations: 4.613 MB / 0.8026 GB, free: 58.66 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005927/1.62, allocations: 2.963 MB / 0.8055 GB, free: 55.69 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001352/1.621, allocations: 355.4 kB / 0.8058 GB, free: 55.34 MB / 462.1 MB Notification: Performance of SimCode: time 8.22e-07/1.621, allocations: 0 / 0.8058 GB, free: 55.34 MB / 462.1 MB Notification: Performance of Templates: time 0.3062/1.928, allocations: 73.71 MB / 0.8778 GB, free: 147.3 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins1/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