Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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) 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(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001061/0.001061, allocations: 111.9 kB / 17.68 MB, free: 5.473 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.001063/0.001063, allocations: 192 kB / 18.62 MB, free: 4.543 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.318/1.318, allocations: 222.9 MB / 242.3 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001/0.001001, allocations: 47.48 kB / 302.1 MB, free: 5.152 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1024, allocations: 49.44 MB / 351.5 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01594/0.1184, allocations: 15.04 MB / 366.5 MB, free: 4.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1939/0.3123, allocations: 4.804 MB / 371.3 MB, free: 9.742 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003016/0.3154, allocations: 92 kB / 371.4 MB, free: 9.742 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006514/0.3219, allocations: 3.158 MB / 374.6 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007303/0.3293, allocations: 2.56 MB / 377.1 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002178/0.3315, allocations: 0.9841 MB / 378.1 MB, free: 9.598 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01041/0.3419, allocations: 6.965 MB / 385.1 MB, free: 8.617 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006231/0.3482, allocations: 4.33 MB / 389.4 MB, free: 6.258 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005348/0.3535, allocations: 2.228 MB / 391.7 MB, free: 5.133 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005765/0.3593, allocations: 3.239 MB / 394.9 MB, free: 3.402 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002067/0.3614, allocations: 484.8 kB / 395.4 MB, free: 3.402 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00503/0.3665, allocations: 1.5 MB / 396.9 MB, free: 2.875 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0039/0.3704, allocations: 2.85 MB / 399.7 MB, free: 32 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005813/0.3762, allocations: 3.251 MB / 403 MB, free: 12.77 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01202/0.3883, allocations: 10.43 MB / 413.4 MB, free: 2.57 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.3883, allocations: 4 kB / 413.4 MB, free: 2.566 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.3884, allocations: 4 kB / 413.4 MB, free: 2.562 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003018/0.3887, allocations: 0 / 413.4 MB, free: 2.562 MB / 318.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.01702/0.4057, allocations: 7.275 MB / 420.7 MB, free: 11.36 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.019e-05/0.4058, allocations: 12.03 kB / 420.7 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01543/0.4212, allocations: 3.94 MB / 424.6 MB, free: 7.398 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009753/0.431, allocations: 4.167 MB / 428.8 MB, free: 3.211 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002563/0.4313, allocations: 317.2 kB / 429.1 MB, free: 2.957 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001564/0.4328, allocations: 432.2 kB / 429.5 MB, free: 2.594 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02589/0.4587, allocations: 15.72 MB / 445.2 MB, free: 2.125 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001692/0.459, allocations: 59.53 kB / 445.3 MB, free: 2.066 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006237/0.4596, allocations: 200.9 kB / 445.5 MB, free: 1.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00459/0.4642, allocations: 3.223 MB / 448.7 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02489/0.4891, allocations: 14.13 MB / 462.9 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07492/0.564, allocations: 57.51 MB / 0.5082 GB, free: 5.809 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01364/0.5777, allocations: 6.557 MB / 0.5146 GB, free: 15.01 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004956/0.5827, allocations: 3.691 MB / 0.5182 GB, free: 11.3 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.256/0.8388, allocations: 14.63 MB / 0.5325 GB, free: 142.6 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.009e-05/0.8389, allocations: 69.19 kB / 0.5325 GB, free: 142.6 MB / 446.1 MB Notification: Performance of pre-optimization done (n=289): time 7.434e-06/0.8389, allocations: 0 / 0.5325 GB, free: 142.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.1543/0.9932, allocations: 42.34 MB / 0.5739 GB, free: 124.1 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.122e-05/0.9933, allocations: 210 kB / 0.5741 GB, free: 123.8 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006284/0.9996, allocations: 5.481 MB / 0.5794 GB, free: 118.4 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007801/1, allocations: 69.7 kB / 0.5795 GB, free: 118.3 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001873/1.002, allocations: 4.357 MB / 0.5837 GB, free: 113.9 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001273/1.004, allocations: 1.259 MB / 0.585 GB, free: 112.7 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002258/1.006, allocations: 1.856 MB / 0.5868 GB, free: 110.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.914e-05/1.006, allocations: 301.1 kB / 0.5871 GB, free: 110.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005399/1.011, allocations: 4.804 MB / 0.5918 GB, free: 105.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008286/1.02, allocations: 9.81 MB / 0.6013 GB, free: 93.46 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01573/1.035, allocations: 15.57 MB / 0.6165 GB, free: 75.43 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000142/1.036, allocations: 48 kB / 0.6166 GB, free: 75.38 MB / 446.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.03866/1.074, allocations: 19.57 MB / 0.6357 GB, free: 55.77 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001621/1.074, allocations: 83.98 kB / 0.6358 GB, free: 55.69 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001982/1.075, allocations: 172 kB / 0.6359 GB, free: 55.52 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02005/1.095, allocations: 5.937 MB / 0.6417 GB, free: 49.57 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006856/1.102, allocations: 2.113 MB / 0.6438 GB, free: 47.46 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02729/1.129, allocations: 26.14 MB / 0.6693 GB, free: 21.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007288/1.136, allocations: 0.5594 MB / 0.6699 GB, free: 20.46 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001682/1.138, allocations: 0.5154 MB / 0.6704 GB, free: 19.95 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.005112/1.143, allocations: 3.098 MB / 0.6734 GB, free: 16.84 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001139/1.144, allocations: 0.4897 MB / 0.6739 GB, free: 16.34 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02692/1.171, allocations: 12.94 MB / 0.6865 GB, free: 3.332 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.062e-05/1.171, allocations: 55.83 kB / 0.6866 GB, free: 3.281 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.028e-05/1.171, allocations: 8 kB / 0.6866 GB, free: 3.273 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.154e-05/1.171, allocations: 15.94 kB / 0.6866 GB, free: 3.258 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2365/1.408, allocations: 24.5 MB / 0.7105 GB, free: 122.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.718e-05/1.408, allocations: 7 kB / 0.7105 GB, free: 122.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002855/1.411, allocations: 0.5816 MB / 0.7111 GB, free: 122.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01793/1.429, allocations: 4.972 MB / 0.716 GB, free: 121.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005818/1.429, allocations: 59.53 kB / 0.716 GB, free: 121.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02232/1.452, allocations: 21.35 MB / 0.7369 GB, free: 110.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/1.452, allocations: 3.875 kB / 0.7369 GB, free: 110.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0295/1.481, allocations: 17.46 MB / 0.7539 GB, free: 93.83 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001324/1.483, allocations: 0.5313 MB / 0.7544 GB, free: 93.55 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001034/1.484, allocations: 55.19 kB / 0.7545 GB, free: 93.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00276/1.486, allocations: 259.6 kB / 0.7547 GB, free: 93.25 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006747/1.487, allocations: 200.6 kB / 0.7549 GB, free: 93.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002646/1.487, allocations: 89.34 kB / 0.755 GB, free: 92.97 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004166/1.492, allocations: 3.398 MB / 0.7583 GB, free: 89.59 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.5e-07/1.492, allocations: 0 / 0.7583 GB, free: 89.59 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007989/1.5, allocations: 1.758 MB / 0.76 GB, free: 87.84 MB / 446.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.0008007/1.5, allocations: 210.3 kB / 0.7602 GB, free: 87.64 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01361/1.514, allocations: 10.98 MB / 0.771 GB, free: 76.74 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.146e-05/1.514, allocations: 0 / 0.771 GB, free: 76.74 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004995/1.519, allocations: 4.095 MB / 0.775 GB, free: 72.64 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003831/1.523, allocations: 0.6176 MB / 0.7756 GB, free: 72.05 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02085/1.544, allocations: 16.01 MB / 0.7912 GB, free: 56.06 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004495/1.548, allocations: 4.625 MB / 0.7957 GB, free: 51.42 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005706/1.554, allocations: 2.962 MB / 0.7986 GB, free: 48.47 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001485/1.556, allocations: 357.2 kB / 0.799 GB, free: 48.12 MB / 446.1 MB Notification: Performance of SimCode: time 1.293e-06/1.556, allocations: 0 / 0.799 GB, free: 48.12 MB / 446.1 MB Notification: Performance of Templates: time 0.2918/1.848, allocations: 73.85 MB / 0.8711 GB, free: 137.2 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches