Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001343/0.001343, allocations: 109.2 kB / 17.73 MB, free: 5.324 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.00123/0.001229, allocations: 188.2 kB / 18.66 MB, free: 4.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.524/1.524, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001173, allocations: 55.92 kB / 328.5 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1114, allocations: 46.62 MB / 375.1 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.2568/0.3682, allocations: 15.08 MB / 390.2 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01135/0.3796, allocations: 4.821 MB / 395 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004774/0.3844, allocations: 93 kB / 395.1 MB, free: 1.438 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006287/0.3908, allocations: 3.161 MB / 398.3 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008768/0.3996, allocations: 2.557 MB / 400.8 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002918/0.4026, allocations: 0.9931 MB / 401.8 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01174/0.4143, allocations: 6.642 MB / 408.5 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008114/0.4225, allocations: 4.36 MB / 412.8 MB, free: 8.418 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005575/0.4281, allocations: 2.236 MB / 415.1 MB, free: 7.148 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006363/0.4345, allocations: 3.249 MB / 418.3 MB, free: 4.254 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002097/0.4366, allocations: 487.9 kB / 418.8 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004749/0.4414, allocations: 1.49 MB / 420.3 MB, free: 2.285 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005025/0.4465, allocations: 2.895 MB / 423.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01027/0.4567, allocations: 3.25 MB / 426.4 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01666/0.4734, allocations: 10.45 MB / 436.9 MB, free: 1.629 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.682e-06/0.4735, allocations: 0 / 436.9 MB, free: 1.629 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.654e-06/0.4735, allocations: 4 kB / 436.9 MB, free: 1.625 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000421/0.4739, allocations: 0 / 436.9 MB, free: 1.625 MB / 350.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.022/0.4959, allocations: 7.292 MB / 444.2 MB, free: 10.25 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.2e-05/0.496, allocations: 8.031 kB / 444.2 MB, free: 10.24 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01815/0.5142, allocations: 3.935 MB / 448.1 MB, free: 6.293 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009852/0.5241, allocations: 4.274 MB / 452.4 MB, free: 1.957 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003374/0.5244, allocations: 316.6 kB / 452.7 MB, free: 1.645 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00191/0.5264, allocations: 435.5 kB / 453.1 MB, free: 1.219 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03527/0.5617, allocations: 15.72 MB / 468.9 MB, free: 0.5664 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003743/0.5621, allocations: 59.47 kB / 468.9 MB, free: 0.5078 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00212/0.5642, allocations: 203.8 kB / 469.1 MB, free: 316 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006283/0.5705, allocations: 3.22 MB / 472.3 MB, free: 13.09 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03253/0.6031, allocations: 14.12 MB / 486.5 MB, free: 14.94 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0931/0.6963, allocations: 57.49 MB / 0.5312 GB, free: 3.871 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01571/0.712, allocations: 6.569 MB / 0.5376 GB, free: 13.05 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005706/0.7178, allocations: 3.688 MB / 0.5412 GB, free: 9.348 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2689/0.9867, allocations: 14.63 MB / 0.5555 GB, free: 145 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.262e-05/0.9868, allocations: 63.47 kB / 0.5556 GB, free: 144.9 MB / 478.1 MB Notification: Performance of pre-optimization done (n=289): time 7.755e-06/0.9868, allocations: 0 / 0.5556 GB, free: 144.9 MB / 478.1 MB Notification: Performance of matching and sorting (n=339): time 0.1474/1.134, allocations: 42.39 MB / 0.597 GB, free: 127 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001228/1.134, allocations: 217.9 kB / 0.5972 GB, free: 126.7 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007169/1.142, allocations: 5.502 MB / 0.6025 GB, free: 121.2 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009554/1.143, allocations: 69.7 kB / 0.6026 GB, free: 121.1 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001906/1.144, allocations: 4.349 MB / 0.6069 GB, free: 116.8 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001256/1.146, allocations: 1.264 MB / 0.6081 GB, free: 115.5 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002143/1.148, allocations: 1.848 MB / 0.6099 GB, free: 113.7 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 7.395e-05/1.148, allocations: 309 kB / 0.6102 GB, free: 113.4 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005332/1.153, allocations: 4.816 MB / 0.6149 GB, free: 108.6 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008725/1.162, allocations: 9.797 MB / 0.6245 GB, free: 96.31 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01703/1.179, allocations: 15.58 MB / 0.6397 GB, free: 78.26 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000233/1.179, allocations: 52 kB / 0.6397 GB, free: 78.21 MB / 478.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04815/1.228, allocations: 19.56 MB / 0.6588 GB, free: 58.61 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001953/1.228, allocations: 80 kB / 0.6589 GB, free: 58.53 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002817/1.228, allocations: 172.8 kB / 0.6591 GB, free: 58.36 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02288/1.251, allocations: 5.936 MB / 0.6649 GB, free: 52.41 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007453/1.258, allocations: 2.117 MB / 0.6669 GB, free: 50.29 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02962/1.288, allocations: 26.16 MB / 0.6925 GB, free: 23.86 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009383/1.298, allocations: 0.5577 MB / 0.693 GB, free: 23.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00182/1.299, allocations: 0.5117 MB / 0.6935 GB, free: 22.79 MB / 478.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.007549/1.307, allocations: 3.094 MB / 0.6965 GB, free: 19.68 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001586/1.309, allocations: 0.4898 MB / 0.697 GB, free: 19.18 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03132/1.34, allocations: 12.93 MB / 0.7096 GB, free: 6.176 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.972e-05/1.34, allocations: 52 kB / 0.7097 GB, free: 6.125 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.01e-05/1.34, allocations: 8 kB / 0.7097 GB, free: 6.117 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-05/1.34, allocations: 23.94 kB / 0.7097 GB, free: 6.094 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3077/1.648, allocations: 24.51 MB / 0.7337 GB, free: 143.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.029e-05/1.648, allocations: 8.25 kB / 0.7337 GB, free: 143.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003574/1.651, allocations: 0.5724 MB / 0.7342 GB, free: 143.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02177/1.673, allocations: 4.975 MB / 0.7391 GB, free: 143.5 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008202/1.674, allocations: 58.36 kB / 0.7391 GB, free: 143.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02747/1.702, allocations: 21.33 MB / 0.76 GB, free: 134.4 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.693e-06/1.702, allocations: 15.72 kB / 0.76 GB, free: 134.3 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03542/1.737, allocations: 17.46 MB / 0.777 GB, free: 127.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003346/1.74, allocations: 1.246 MB / 0.7783 GB, free: 126.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001145/1.742, allocations: 59.03 kB / 0.7783 GB, free: 126.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003121/1.745, allocations: 263.7 kB / 0.7786 GB, free: 126.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007861/1.745, allocations: 192.3 kB / 0.7787 GB, free: 126.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002721/1.746, allocations: 87.47 kB / 0.7788 GB, free: 126.4 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004724/1.751, allocations: 3.424 MB / 0.7822 GB, free: 124.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.751, allocations: 0 / 0.7822 GB, free: 124.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007519/1.758, allocations: 1.767 MB / 0.7839 GB, free: 124.5 MB / 494.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.000734/1.759, allocations: 204 kB / 0.7841 GB, free: 124.4 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01375/1.773, allocations: 10.97 MB / 0.7948 GB, free: 113.8 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.716e-06/1.773, allocations: 0 / 0.7948 GB, free: 113.8 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004957/1.778, allocations: 4.106 MB / 0.7988 GB, free: 109.7 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00426/1.782, allocations: 0.6217 MB / 0.7994 GB, free: 109.1 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02349/1.805, allocations: 16.04 MB / 0.8151 GB, free: 93.11 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004191/1.81, allocations: 4.628 MB / 0.8196 GB, free: 88.47 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005916/1.816, allocations: 2.968 MB / 0.8225 GB, free: 85.57 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001462/1.817, allocations: 351.4 kB / 0.8228 GB, free: 85.23 MB / 494.1 MB Notification: Performance of SimCode: time 1.392e-06/1.817, allocations: 3.938 kB / 0.8228 GB, free: 85.23 MB / 494.1 MB Notification: Performance of Templates: time 0.1076/1.925, allocations: 76.94 MB / 0.898 GB, free: 8.121 MB / 494.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches