Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001523/0.001523, allocations: 112 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001587/0.001587, allocations: 184.6 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.396/1.396, allocations: 225.6 MB / 252.5 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001662/0.001662, allocations: 47.92 kB / 370.4 MB, free: 9.828 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2648/0.2665, allocations: 52.19 MB / 422.6 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01751/0.284, allocations: 13.58 MB / 436.2 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01049/0.2945, allocations: 4.907 MB / 441.1 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002093/0.2966, allocations: 111.4 kB / 441.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008088/0.3047, allocations: 4.256 MB / 445.5 MB, free: 7.637 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00578/0.3104, allocations: 2.206 MB / 447.7 MB, free: 5.422 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002563/0.313, allocations: 1.104 MB / 448.8 MB, free: 4.316 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0089/0.3219, allocations: 5.989 MB / 454.8 MB, free: 14.31 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005572/0.3275, allocations: 4.074 MB / 458.9 MB, free: 10.17 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003963/0.3314, allocations: 2.193 MB / 461 MB, free: 7.973 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005094/0.3365, allocations: 3.085 MB / 464.1 MB, free: 4.879 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001242/0.3378, allocations: 0.4922 MB / 464.6 MB, free: 4.387 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00342/0.3412, allocations: 1.697 MB / 466.3 MB, free: 2.688 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003275/0.3445, allocations: 2.673 MB / 469 MB, free: 8 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004406/0.3489, allocations: 2.961 MB / 472 MB, free: 13.03 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01285/0.3617, allocations: 9.702 MB / 481.7 MB, free: 3.293 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.467e-06/0.3617, allocations: 3.984 kB / 481.7 MB, free: 3.289 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3617, allocations: 0 / 481.7 MB, free: 3.289 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000345/0.3621, allocations: 4 kB / 481.7 MB, free: 3.285 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: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.01589/0.378, allocations: 6.291 MB / 488 MB, free: 12.93 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.607e-05/0.378, allocations: 8.031 kB / 488 MB, free: 12.92 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001935/0.38, allocations: 0.9325 MB / 488.9 MB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03528/0.4152, allocations: 6.055 MB / 494.9 MB, free: 5.906 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01148/0.4267, allocations: 4.402 MB / 499.4 MB, free: 1.438 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003527/0.4271, allocations: 308.1 kB / 499.7 MB, free: 1.133 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001644/0.4287, allocations: 439.7 kB / 0.4884 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02509/0.4538, allocations: 12.31 MB / 0.5004 GB, free: 3.652 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001686/0.454, allocations: 47.59 kB / 0.5004 GB, free: 3.605 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005111/0.4545, allocations: 195.9 kB / 0.5006 GB, free: 3.414 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003433/0.4579, allocations: 2.039 MB / 0.5026 GB, free: 1.371 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02268/0.4806, allocations: 10.36 MB / 0.5127 GB, free: 7.004 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2872/0.7679, allocations: 43.83 MB / 0.5555 GB, free: 77.48 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01116/0.779, allocations: 4.196 MB / 0.5596 GB, free: 76.94 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002105/0.7811, allocations: 1.843 MB / 0.5614 GB, free: 76.19 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009404/0.7905, allocations: 6.074 MB / 0.5674 GB, free: 73.33 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.957e-05/0.7906, allocations: 55.8 kB / 0.5674 GB, free: 73.28 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 4.869e-06/0.7906, allocations: 0 / 0.5674 GB, free: 73.28 MB / 446.1 MB Notification: Performance of matching and sorting (n=223): time 0.05391/0.8445, allocations: 19.28 MB / 0.5862 GB, free: 57.48 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.389e-05/0.8445, allocations: 201.9 kB / 0.5864 GB, free: 57.24 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004581/0.8491, allocations: 4.505 MB / 0.5908 GB, free: 52.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002859/0.8494, allocations: 53.7 kB / 0.5909 GB, free: 52.74 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001678/0.8511, allocations: 3.701 MB / 0.5945 GB, free: 49.33 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005618/0.8517, allocations: 0.8698 MB / 0.5953 GB, free: 48.47 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001169/0.8528, allocations: 1.282 MB / 0.5966 GB, free: 47.18 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.689e-05/0.8529, allocations: 301.1 kB / 0.5969 GB, free: 46.88 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002449/0.8553, allocations: 2.234 MB / 0.5991 GB, free: 44.64 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003535/0.8589, allocations: 5.977 MB / 0.6049 GB, free: 36.87 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006952/0.8658, allocations: 8.916 MB / 0.6136 GB, free: 26.12 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.563e-05/0.8659, allocations: 40 kB / 0.6136 GB, free: 26.08 MB / 446.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01334/0.8792, allocations: 9.042 MB / 0.6225 GB, free: 17.03 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.106e-05/0.8793, allocations: 64 kB / 0.6225 GB, free: 16.96 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.625e-05/0.8794, allocations: 139.6 kB / 0.6227 GB, free: 16.83 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003104/0.8825, allocations: 1.199 MB / 0.6238 GB, free: 15.63 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003914/0.8864, allocations: 1.415 MB / 0.6252 GB, free: 14.21 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008818/0.8952, allocations: 7.901 MB / 0.6329 GB, free: 6.203 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004879/0.9001, allocations: 343.5 kB / 0.6333 GB, free: 5.867 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007053/0.9008, allocations: 376 kB / 0.6336 GB, free: 5.5 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 599 * 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 (766): * Single equations (assignments): 762 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,40,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003293/0.9041, allocations: 2.489 MB / 0.6361 GB, free: 3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007082/0.9048, allocations: 433.1 kB / 0.6365 GB, free: 2.574 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00694/0.9117, allocations: 3.866 MB / 0.6402 GB, free: 14.69 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.712e-05/0.9118, allocations: 20 kB / 0.6403 GB, free: 14.67 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.239e-05/0.9118, allocations: 8 kB / 0.6403 GB, free: 14.66 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.149e-05/0.9118, allocations: 11.97 kB / 0.6403 GB, free: 14.65 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01985/0.9317, allocations: 9.917 MB / 0.65 GB, free: 4.641 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.966e-05/0.9317, allocations: 8 kB / 0.65 GB, free: 4.633 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001492/0.9332, allocations: 335.6 kB / 0.6503 GB, free: 4.305 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003279/0.9364, allocations: 0.9839 MB / 0.6513 GB, free: 3.316 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002068/0.9367, allocations: 44 kB / 0.6513 GB, free: 3.273 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01036/0.947, allocations: 6.577 MB / 0.6577 GB, free: 12.59 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.839e-06/0.947, allocations: 8 kB / 0.6577 GB, free: 12.58 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01217/0.9592, allocations: 6.606 MB / 0.6642 GB, free: 5.891 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001325/0.9605, allocations: 389 kB / 0.6645 GB, free: 5.508 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000929/0.9614, allocations: 47.98 kB / 0.6646 GB, free: 5.461 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002041/0.9635, allocations: 107.9 kB / 0.6647 GB, free: 5.355 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000421/0.9639, allocations: 148.9 kB / 0.6648 GB, free: 5.211 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001879/0.9641, allocations: 66.48 kB / 0.6649 GB, free: 5.148 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005841/0.9699, allocations: 2.832 MB / 0.6677 GB, free: 2.316 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.9699, allocations: 0 / 0.6677 GB, free: 2.316 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006906/0.9768, allocations: 1.176 MB / 0.6688 GB, free: 1.141 MB / 478.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 (173): * Single equations (assignments): 169 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,30,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01373/0.9906, allocations: 7.327 MB / 0.676 GB, free: 9.734 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009921/1, allocations: 5.307 MB / 0.6812 GB, free: 4.438 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.147e-05/1.001, allocations: 4 kB / 0.6812 GB, free: 4.434 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002882/1.003, allocations: 1.699 MB / 0.6828 GB, free: 2.723 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004327/1.008, allocations: 0.5681 MB / 0.6834 GB, free: 2.16 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09941/1.107, allocations: 51.57 MB / 0.7337 GB, free: 8.625 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006234/1.113, allocations: 3.875 MB / 0.7375 GB, free: 4.715 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004916/1.118, allocations: 1.946 MB / 0.7394 GB, free: 2.762 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003458/1.122, allocations: 2.292 MB / 0.7417 GB, free: 480 kB / 0.545 GB Notification: Performance of SimCode: time 7.81e-07/1.122, allocations: 0 / 0.7417 GB, free: 480 kB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3431/1.465, allocations: 89.71 MB / 0.8293 GB, free: 129.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.77/29.24, allocations: 8.047 kB / 0.8293 GB, free: 129.3 MB / 0.545 GB " [Timeout remaining time 631] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 32.517934423172846]