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.001334/0.001334, allocations: 109.9 kB / 17.06 MB, free: 5.969 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.001143/0.001143, allocations: 200 kB / 18.01 MB, free: 5.055 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.302/1.302, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009622/0.0009622, allocations: 55.92 kB / 351.3 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2585/0.2595, allocations: 49.43 MB / 400.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01515/0.2747, allocations: 15.03 MB / 415.8 MB, free: 9.801 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01015/0.2849, allocations: 4.811 MB / 420.6 MB, free: 4.977 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00202/0.287, allocations: 95.75 kB / 420.7 MB, free: 4.883 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005373/0.2924, allocations: 3.169 MB / 423.8 MB, free: 1.703 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005818/0.2982, allocations: 2.547 MB / 426.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002153/0.3004, allocations: 0.9905 MB / 427.4 MB, free: 14.15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009406/0.3098, allocations: 6.971 MB / 434.3 MB, free: 7.168 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005442/0.3153, allocations: 4.331 MB / 438.7 MB, free: 2.773 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003852/0.3192, allocations: 2.223 MB / 440.9 MB, free: 0.543 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0045/0.3237, allocations: 3.24 MB / 444.1 MB, free: 13.29 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001217/0.325, allocations: 488 kB / 444.6 MB, free: 12.82 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002863/0.3278, allocations: 1.502 MB / 446.1 MB, free: 11.31 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002794/0.3306, allocations: 2.887 MB / 449 MB, free: 8.418 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004956/0.3356, allocations: 3.243 MB / 452.2 MB, free: 5.156 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01369/0.3493, allocations: 10.44 MB / 462.7 MB, free: 10.68 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.155e-06/0.3494, allocations: 4 kB / 462.7 MB, free: 10.68 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3494, allocations: 0 / 462.7 MB, free: 10.68 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003411/0.3498, allocations: 0 / 462.7 MB, free: 10.68 MB / 382.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.01684/0.3666, allocations: 7.283 MB / 470 MB, free: 3.312 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.176e-05/0.3667, allocations: 12.03 kB / 470 MB, free: 3.301 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01587/0.3826, allocations: 3.935 MB / 473.9 MB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009649/0.3922, allocations: 4.173 MB / 478.1 MB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002699/0.3926, allocations: 316.4 kB / 478.4 MB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00149/0.3941, allocations: 435.6 kB / 478.8 MB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02486/0.4189, allocations: 15.72 MB / 494.5 MB, free: 9.73 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001419/0.4191, allocations: 63.45 kB / 494.6 MB, free: 9.668 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006027/0.4197, allocations: 203.8 kB / 494.8 MB, free: 9.469 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004767/0.4245, allocations: 3.219 MB / 498 MB, free: 6.246 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02525/0.4498, allocations: 14.13 MB / 0.5001 GB, free: 8.09 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3203/0.7701, allocations: 57.49 MB / 0.5563 GB, free: 91.3 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01213/0.7823, allocations: 6.564 MB / 0.5627 GB, free: 89.85 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003901/0.7862, allocations: 3.68 MB / 0.5663 GB, free: 88.38 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01812/0.8043, allocations: 14.63 MB / 0.5806 GB, free: 80.81 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.966e-05/0.8044, allocations: 67.67 kB / 0.5806 GB, free: 80.75 MB / 462.1 MB Notification: Performance of pre-optimization done (n=289): time 6.643e-06/0.8044, allocations: 0 / 0.5806 GB, free: 80.75 MB / 462.1 MB Notification: Performance of matching and sorting (n=339): time 0.1331/0.9375, allocations: 42.35 MB / 0.622 GB, free: 39.53 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.189e-05/0.9376, allocations: 221.2 kB / 0.6222 GB, free: 39.27 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006247/0.9439, allocations: 5.474 MB / 0.6276 GB, free: 33.81 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007184/0.9446, allocations: 73.7 kB / 0.6276 GB, free: 33.73 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001924/0.9465, allocations: 4.36 MB / 0.6319 GB, free: 29.38 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001128/0.9477, allocations: 1.252 MB / 0.6331 GB, free: 28.13 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002188/0.9499, allocations: 1.854 MB / 0.6349 GB, free: 26.27 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.062e-05/0.9499, allocations: 305.1 kB / 0.6352 GB, free: 25.96 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005221/0.9552, allocations: 4.804 MB / 0.6399 GB, free: 21.15 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006944/0.9621, allocations: 9.806 MB / 0.6495 GB, free: 8.973 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01567/0.9778, allocations: 15.56 MB / 0.6647 GB, free: 7.02 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001697/0.978, allocations: 48 kB / 0.6647 GB, free: 6.973 MB / 478.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04628/1.024, allocations: 19.56 MB / 0.6838 GB, free: 3.363 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001285/1.024, allocations: 83.94 kB / 0.6839 GB, free: 3.281 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002092/1.025, allocations: 172.2 kB / 0.6841 GB, free: 3.113 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02319/1.048, allocations: 5.938 MB / 0.6899 GB, free: 13.17 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007504/1.055, allocations: 2.117 MB / 0.6919 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03346/1.089, allocations: 26.14 MB / 0.7175 GB, free: 0.6211 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007311/1.096, allocations: 0.5638 MB / 0.718 GB, free: 60 kB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001037/1.097, allocations: 0.5155 MB / 0.7185 GB, free: 15.54 MB / 0.5294 GB 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.004971/1.102, allocations: 3.09 MB / 0.7215 GB, free: 12.44 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009596/1.103, allocations: 0.4937 MB / 0.722 GB, free: 11.94 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03081/1.134, allocations: 12.92 MB / 0.7346 GB, free: 14.95 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001146/1.134, allocations: 63.97 kB / 0.7347 GB, free: 14.89 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.403e-05/1.134, allocations: 15.88 kB / 0.7347 GB, free: 14.88 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.708e-05/1.134, allocations: 15.94 kB / 0.7347 GB, free: 14.86 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3006/1.435, allocations: 24.5 MB / 0.7587 GB, free: 202.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-05/1.435, allocations: 6.781 kB / 0.7587 GB, free: 202.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003318/1.438, allocations: 0.5804 MB / 0.7592 GB, free: 202.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01895/1.457, allocations: 4.967 MB / 0.7641 GB, free: 201.4 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007294/1.458, allocations: 65.94 kB / 0.7641 GB, free: 201.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02337/1.482, allocations: 21.33 MB / 0.785 GB, free: 188.7 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/1.482, allocations: 11.75 kB / 0.785 GB, free: 188.7 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03252/1.514, allocations: 17.46 MB / 0.802 GB, free: 171.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001915/1.516, allocations: 0.5324 MB / 0.8026 GB, free: 171.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001103/1.517, allocations: 52 kB / 0.8026 GB, free: 171 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002831/1.52, allocations: 263.5 kB / 0.8029 GB, free: 170.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007448/1.521, allocations: 189.6 kB / 0.803 GB, free: 170.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002593/1.521, allocations: 83.94 kB / 0.8031 GB, free: 170.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004467/1.526, allocations: 3.406 MB / 0.8064 GB, free: 167.1 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.61e-07/1.526, allocations: 0 / 0.8064 GB, free: 167.1 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007332/1.533, allocations: 1.763 MB / 0.8082 GB, free: 165.3 MB / 0.545 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 () * 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.0007471/1.534, allocations: 212.8 kB / 0.8084 GB, free: 165.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.014/1.548, allocations: 10.96 MB / 0.8191 GB, free: 154.3 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.462e-05/1.548, allocations: 4 kB / 0.8191 GB, free: 154.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004956/1.553, allocations: 4.105 MB / 0.8231 GB, free: 150.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003818/1.557, allocations: 0.6192 MB / 0.8237 GB, free: 149.6 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02134/1.578, allocations: 16.02 MB / 0.8393 GB, free: 133.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004486/1.582, allocations: 4.615 MB / 0.8438 GB, free: 128.9 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005693/1.588, allocations: 2.968 MB / 0.8467 GB, free: 126 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001365/1.59, allocations: 347.4 kB / 0.8471 GB, free: 125.7 MB / 0.545 GB Notification: Performance of SimCode: time 8.61e-07/1.59, allocations: 4 kB / 0.8471 GB, free: 125.7 MB / 0.545 GB Notification: Performance of Templates: time 0.1064/1.696, allocations: 77.28 MB / 0.9225 GB, free: 48.58 MB / 0.545 GB 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 -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/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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches