Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001079/0.001079, allocations: 200.5 kB / 17.38 MB, free: 4.426 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.297/1.297, allocations: 226.6 MB / 244.7 MB, free: 6.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008149/0.0008149, allocations: 94.14 kB / 296.8 MB, free: 6.695 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002481/0.0002482, allocations: 7.984 kB / 356.8 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2183/0.2186, allocations: 51.29 MB / 408 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.0396/0.2583, allocations: 50.25 MB / 458.3 MB, free: 9.324 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02553/0.2839, allocations: 11.34 MB / 469.6 MB, free: 13.97 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008716/0.2926, allocations: 243.4 kB / 469.9 MB, free: 13.73 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007484/0.3001, allocations: 2.574 MB / 472.4 MB, free: 11.14 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02069/0.3208, allocations: 7.716 MB / 480.2 MB, free: 3.398 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00455/0.3254, allocations: 0.9751 MB / 481.1 MB, free: 2.422 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.2762/0.6016, allocations: 62.09 MB / 0.5305 GB, free: 31.34 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009232/0.6109, allocations: 7.08 MB / 0.5374 GB, free: 26.56 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003241/0.6142, allocations: 1.651 MB / 0.539 GB, free: 25.45 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003588/0.6178, allocations: 2.539 MB / 0.5415 GB, free: 23.64 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001142/0.619, allocations: 188 kB / 0.5417 GB, free: 23.46 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003046/0.622, allocations: 1.383 MB / 0.543 GB, free: 22.4 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002573/0.6246, allocations: 2.182 MB / 0.5452 GB, free: 20.81 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003786/0.6285, allocations: 2.348 MB / 0.5475 GB, free: 19.99 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006614/0.6351, allocations: 7.425 MB / 0.5547 GB, free: 13.55 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.6351, allocations: 0 / 0.5547 GB, free: 13.55 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.766e-06/0.6351, allocations: 0 / 0.5547 GB, free: 13.55 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002886/0.6354, allocations: 0 / 0.5547 GB, free: 13.55 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.00955/0.645, allocations: 4.939 MB / 0.5595 GB, free: 8.957 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/0.645, allocations: 12.03 kB / 0.5595 GB, free: 8.945 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0102/0.6553, allocations: 2.588 MB / 0.5621 GB, free: 6.449 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007224/0.6625, allocations: 3.69 MB / 0.5657 GB, free: 3.758 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001767/0.6627, allocations: 307.2 kB / 0.566 GB, free: 3.59 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001288/0.664, allocations: 439.1 kB / 0.5664 GB, free: 3.301 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0214/0.6854, allocations: 12.4 MB / 0.5785 GB, free: 9.699 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001466/0.6856, allocations: 61.23 kB / 0.5785 GB, free: 9.664 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004706/0.6861, allocations: 189 kB / 0.5787 GB, free: 9.613 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002851/0.689, allocations: 2.033 MB / 0.5807 GB, free: 7.949 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02142/0.7104, allocations: 10.54 MB / 0.591 GB, free: 0.6641 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05417/0.7646, allocations: 44.37 MB / 0.6343 GB, free: 6.914 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01214/0.7768, allocations: 4.876 MB / 0.6391 GB, free: 1.91 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002689/0.7795, allocations: 2.007 MB / 0.6411 GB, free: 15.89 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01138/0.7909, allocations: 7.115 MB / 0.648 GB, free: 8.57 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.162e-05/0.791, allocations: 51.56 kB / 0.6481 GB, free: 8.508 MB / 458.7 MB Notification: Performance of pre-optimization done (n=179): time 5.029e-06/0.791, allocations: 4 kB / 0.6481 GB, free: 8.504 MB / 458.7 MB Notification: Performance of matching and sorting (n=223): time 0.06696/0.858, allocations: 19.69 MB / 0.6673 GB, free: 4.828 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001101/0.8582, allocations: 209.9 kB / 0.6675 GB, free: 4.582 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008362/0.8665, allocations: 4.435 MB / 0.6718 GB, free: 136 kB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004963/0.8671, allocations: 57.7 kB / 0.6719 GB, free: 72 kB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002652/0.8697, allocations: 3.513 MB / 0.6753 GB, free: 12.57 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001139/0.8709, allocations: 0.8425 MB / 0.6761 GB, free: 11.74 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007058/0.8716, allocations: 131 kB / 0.6763 GB, free: 11.61 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0005599/0.8722, allocations: 0.5831 MB / 0.6768 GB, free: 11.02 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004283/0.8765, allocations: 2.342 MB / 0.6791 GB, free: 8.68 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006705/0.8832, allocations: 6.137 MB / 0.6851 GB, free: 0.7227 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2025/1.086, allocations: 9.126 MB / 0.694 GB, free: 181.4 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001325/1.086, allocations: 38.19 kB / 0.6941 GB, free: 181.4 MB / 490.7 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.01578/1.102, allocations: 9.495 MB / 0.7033 GB, free: 178.1 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.953e-05/1.102, allocations: 60.81 kB / 0.7034 GB, free: 178.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001122/1.102, allocations: 131.8 kB / 0.7035 GB, free: 178.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003671/1.106, allocations: 1.364 MB / 0.7048 GB, free: 177.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004107/1.11, allocations: 1.481 MB / 0.7063 GB, free: 177.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009601/1.119, allocations: 7.965 MB / 0.7141 GB, free: 172.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004194/1.124, allocations: 353.3 kB / 0.7144 GB, free: 172 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005631/1.124, allocations: 394.9 kB / 0.7148 GB, free: 171.6 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 605 * Number of states: 0 () * Number of discrete variables: 46 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (804): * Single equations (assignments): 800 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003254/1.127, allocations: 2.487 MB / 0.7172 GB, free: 169.5 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005617/1.128, allocations: 401.4 kB / 0.7176 GB, free: 169.3 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007003/1.135, allocations: 4.11 MB / 0.7216 GB, free: 165.6 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.287e-05/1.135, allocations: 27.94 kB / 0.7216 GB, free: 165.6 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-05/1.135, allocations: 14.62 kB / 0.7216 GB, free: 165.6 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.672e-05/1.135, allocations: 7.969 kB / 0.7217 GB, free: 165.6 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01558/1.151, allocations: 10.35 MB / 0.7318 GB, free: 155.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.377e-05/1.151, allocations: 4.594 kB / 0.7318 GB, free: 155.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001411/1.152, allocations: 351.5 kB / 0.7321 GB, free: 154.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003303/1.155, allocations: 1.147 MB / 0.7332 GB, free: 153.7 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001698/1.156, allocations: 46.58 kB / 0.7333 GB, free: 153.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008254/1.164, allocations: 6.662 MB / 0.7398 GB, free: 146.9 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/1.164, allocations: 7.938 kB / 0.7398 GB, free: 146.9 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009755/1.174, allocations: 6.889 MB / 0.7465 GB, free: 140 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001435/1.175, allocations: 467.7 kB / 0.7469 GB, free: 139.5 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004864/1.176, allocations: 38.95 kB / 0.747 GB, free: 139.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001524/1.177, allocations: 119.9 kB / 0.7471 GB, free: 139.4 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003854/1.178, allocations: 137 kB / 0.7472 GB, free: 139.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001457/1.178, allocations: 61.02 kB / 0.7473 GB, free: 139.2 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003948/1.182, allocations: 2.783 MB / 0.75 GB, free: 136.4 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.41e-07/1.182, allocations: 0 / 0.75 GB, free: 136.4 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005215/1.187, allocations: 1.221 MB / 0.7512 GB, free: 135.2 MB / 490.7 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 (173): * Single equations (assignments): 169 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005734/1.188, allocations: 225.3 kB / 0.7514 GB, free: 135 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.007739/1.195, allocations: 5.71 MB / 0.757 GB, free: 129.3 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.879e-06/1.195, allocations: 4 kB / 0.757 GB, free: 129.3 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002316/1.198, allocations: 1.865 MB / 0.7588 GB, free: 127.4 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005609/1.203, allocations: 0.5177 MB / 0.7593 GB, free: 126.9 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01656/1.22, allocations: 13.58 MB / 0.7726 GB, free: 113.2 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003422/1.223, allocations: 3.847 MB / 0.7763 GB, free: 109.3 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00132/1.225, allocations: 319.4 kB / 0.7766 GB, free: 109 MB / 490.7 MB Notification: Performance of SimCode: time 1.173e-06/1.225, allocations: 0 / 0.7766 GB, free: 109 MB / 490.7 MB Notification: Performance of Templates: time 0.1045/1.329, allocations: 89.43 MB / 0.864 GB, free: 19.6 MB / 490.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches