Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001058/0.001058, allocations: 178.1 kB / 16.41 MB, free: 5.578 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.356/1.356, allocations: 205.4 MB / 222.5 MB, free: 13.7 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007296/0.0007295, allocations: 90.31 kB / 270.9 MB, free: 13.23 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002871/0.0002874, allocations: 12 kB / 327 MB, free: 15.05 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09113/0.09143, allocations: 47.58 MB / 374.6 MB, free: 15.39 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.246/0.3374, allocations: 73.89 MB / 448.4 MB, free: 2.629 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.04402/0.3815, allocations: 15.85 MB / 464.3 MB, free: 2.734 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01453/0.3961, allocations: 371 kB / 464.7 MB, free: 2.371 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01093/0.407, allocations: 3.623 MB / 468.3 MB, free: 14.73 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02734/0.4344, allocations: 10.79 MB / 479.1 MB, free: 3.902 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00766/0.4421, allocations: 1.23 MB / 480.3 MB, free: 2.672 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0729/0.515, allocations: 66.43 MB / 0.5339 GB, free: 156 kB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2113/0.7264, allocations: 10.24 MB / 0.5439 GB, free: 62.28 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004645/0.7311, allocations: 2.413 MB / 0.5463 GB, free: 62.28 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005008/0.7361, allocations: 3.659 MB / 0.5498 GB, free: 62.27 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008043/0.7369, allocations: 245.8 kB / 0.5501 GB, free: 62.27 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002657/0.7396, allocations: 1.294 MB / 0.5513 GB, free: 62.27 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002828/0.7424, allocations: 3.24 MB / 0.5545 GB, free: 62.27 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001643/0.7441, allocations: 1.442 MB / 0.5559 GB, free: 62.23 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008536/0.7526, allocations: 10.37 MB / 0.566 GB, free: 58.7 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.7527, allocations: 0 / 0.566 GB, free: 58.7 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.7527, allocations: 0 / 0.566 GB, free: 58.7 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003171/0.753, allocations: 0 / 0.566 GB, free: 58.7 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2349 * Number of variables: 2349 Notification: Performance of Generate backend data structure: time 0.01669/0.7697, allocations: 7.413 MB / 0.5733 GB, free: 54.41 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.7697, allocations: 9.625 kB / 0.5733 GB, free: 54.41 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04064/0.8104, allocations: 4.969 MB / 0.5781 GB, free: 50.38 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01455/0.825, allocations: 6.473 MB / 0.5845 GB, free: 45.82 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002508/0.8252, allocations: 434.2 kB / 0.5849 GB, free: 45.58 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00178/0.827, allocations: 0.5834 MB / 0.5855 GB, free: 45.2 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02883/0.8559, allocations: 17.08 MB / 0.6021 GB, free: 32.09 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002247/0.8561, allocations: 80.86 kB / 0.6022 GB, free: 32.04 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008217/0.857, allocations: 264.7 kB / 0.6025 GB, free: 31.97 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003694/0.8607, allocations: 2.651 MB / 0.605 GB, free: 29.79 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02582/0.8865, allocations: 14.78 MB / 0.6195 GB, free: 19.52 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07703/0.9636, allocations: 64.59 MB / 0.6826 GB, free: 6.539 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02322/0.9868, allocations: 8.811 MB / 0.6912 GB, free: 13.59 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006681/0.9936, allocations: 5.052 MB / 0.6961 GB, free: 8.535 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1968/1.19, allocations: 18.64 MB / 0.7143 GB, free: 176.8 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.391e-05/1.191, allocations: 61.73 kB / 0.7144 GB, free: 176.7 MB / 474.7 MB Notification: Performance of pre-optimization done (n=281): time 6.722e-06/1.191, allocations: 3 kB / 0.7144 GB, free: 176.7 MB / 474.7 MB Notification: Performance of matching and sorting (n=374): time 0.2399/1.43, allocations: 75.16 MB / 0.7878 GB, free: 126.6 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.931e-05/1.431, allocations: 376.6 kB / 0.7881 GB, free: 126.1 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007423/1.438, allocations: 6.379 MB / 0.7944 GB, free: 119.7 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009769/1.439, allocations: 81.7 kB / 0.7944 GB, free: 119.7 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002144/1.441, allocations: 4.761 MB / 0.7991 GB, free: 114.9 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001438/1.443, allocations: 1.383 MB / 0.8004 GB, free: 113.5 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005373/1.443, allocations: 192 kB / 0.8006 GB, free: 113.4 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003314/1.444, allocations: 0.703 MB / 0.8013 GB, free: 112.6 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006588/1.45, allocations: 5.955 MB / 0.8071 GB, free: 106.7 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008818/1.459, allocations: 10.99 MB / 0.8179 GB, free: 93.25 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009537/1.469, allocations: 7.892 MB / 0.8256 GB, free: 85.34 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.124e-05/1.469, allocations: 48 kB / 0.8256 GB, free: 85.3 MB / 474.7 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04634/1.515, allocations: 23.27 MB / 0.8483 GB, free: 61.98 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001382/1.515, allocations: 80 kB / 0.8484 GB, free: 61.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000216/1.515, allocations: 172 kB / 0.8486 GB, free: 61.73 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03371/1.549, allocations: 7.52 MB / 0.8559 GB, free: 54.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01142/1.561, allocations: 2.195 MB / 0.8581 GB, free: 52 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2825/1.843, allocations: 35.55 MB / 0.8928 GB, free: 153.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01214/1.855, allocations: 0.7469 MB / 0.8935 GB, free: 153.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002209/1.858, allocations: 0.5302 MB / 0.894 GB, free: 153.2 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 785 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1091): * Single equations (assignments): 1084 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,77.8%) 67,(2,100.0%) 18} * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.008564/1.866, allocations: 3.436 MB / 0.8974 GB, free: 153 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001778/1.868, allocations: 0.5755 MB / 0.8979 GB, free: 153 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04455/1.913, allocations: 16.95 MB / 0.9145 GB, free: 148.6 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000114/1.913, allocations: 54.02 kB / 0.9146 GB, free: 148.6 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.171e-05/1.913, allocations: 15.47 kB / 0.9146 GB, free: 148.6 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001263/1.913, allocations: 17.48 kB / 0.9146 GB, free: 148.6 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05671/1.97, allocations: 32.17 MB / 0.946 GB, free: 135.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.862e-05/1.97, allocations: 3.812 kB / 0.946 GB, free: 135.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004033/1.974, allocations: 0.6041 MB / 0.9466 GB, free: 135.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01959/1.993, allocations: 7.145 MB / 0.9536 GB, free: 132.4 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001067/1.994, allocations: 63.98 kB / 0.9536 GB, free: 132.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03779/2.032, allocations: 33.86 MB / 0.9867 GB, free: 98.38 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/2.032, allocations: 7.938 kB / 0.9867 GB, free: 98.37 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04783/2.08, allocations: 24.58 MB / 1.011 GB, free: 74 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005845/2.086, allocations: 1.665 MB / 1.012 GB, free: 72.31 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00186/2.088, allocations: 63.95 kB / 1.012 GB, free: 72.25 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007088/2.095, allocations: 456 kB / 1.013 GB, free: 71.8 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0013/2.096, allocations: 245.4 kB / 1.013 GB, free: 71.57 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006159/2.097, allocations: 98.02 kB / 1.013 GB, free: 71.47 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.009147/2.106, allocations: 4.041 MB / 1.017 GB, free: 67.44 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.11e-07/2.106, allocations: 6.094 kB / 1.017 GB, free: 67.44 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01233/2.119, allocations: 2.297 MB / 1.019 GB, free: 65.15 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute1.phi,revolute1.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 (243): * Single equations (assignments): 236 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,84.0%) 62,(2,100.0%) 15} * Non-linear torn systems: 1 {2 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009269/2.12, allocations: 265.5 kB / 1.02 GB, free: 64.9 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01883/2.138, allocations: 14.82 MB / 1.034 GB, free: 50.11 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.673e-06/2.138, allocations: 0 / 1.034 GB, free: 50.11 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008511/2.147, allocations: 6.682 MB / 1.041 GB, free: 43.39 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004701/2.152, allocations: 0.8351 MB / 1.041 GB, free: 42.58 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02769/2.179, allocations: 23.43 MB / 1.064 GB, free: 19.25 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.156/2.335, allocations: 5.229 MB / 1.069 GB, free: 153.7 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002685/2.338, allocations: 442.4 kB / 1.07 GB, free: 153.7 MB / 474.7 MB Notification: Performance of SimCode: time 1.142e-06/2.338, allocations: 2 kB / 1.07 GB, free: 153.7 MB / 474.7 MB Notification: Performance of Templates: time 0.4018/2.74, allocations: 208.2 MB / 1.273 GB, free: 141.5 MB / 474.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches