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.001683/0.001683, allocations: 107.5 kB / 20.44 MB, free: 1.066 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.001992/0.001992, allocations: 185 kB / 23.7 MB, free: 4.191 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.409/1.409, allocations: 225.7 MB / 252.5 MB, free: 12.86 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.001597/0.001597, allocations: 43.94 kB / 370.4 MB, free: 9.715 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2623/0.2639, allocations: 52.18 MB / 422.6 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01571/0.2796, allocations: 11.78 MB / 434.4 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0105/0.2901, allocations: 4.635 MB / 439 MB, free: 13.94 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0025/0.2926, allocations: 99.5 kB / 439.1 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008143/0.3008, allocations: 4.07 MB / 443.2 MB, free: 9.758 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006139/0.3069, allocations: 2.224 MB / 445.4 MB, free: 7.527 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002748/0.3097, allocations: 1.119 MB / 446.5 MB, free: 6.406 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00867/0.3183, allocations: 5.972 MB / 452.5 MB, free: 428 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005884/0.3242, allocations: 4.053 MB / 456.5 MB, free: 12.3 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004078/0.3283, allocations: 2.193 MB / 458.7 MB, free: 10.1 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004689/0.333, allocations: 2.882 MB / 461.6 MB, free: 7.207 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001258/0.3343, allocations: 0.4922 MB / 462.1 MB, free: 6.715 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00334/0.3376, allocations: 1.533 MB / 463.6 MB, free: 5.18 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004653/0.3422, allocations: 2.673 MB / 466.3 MB, free: 2.5 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004636/0.3469, allocations: 2.246 MB / 468.5 MB, free: 248 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01257/0.3595, allocations: 9.745 MB / 478.3 MB, free: 6.461 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.677e-06/0.3595, allocations: 4 kB / 478.3 MB, free: 6.457 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3595, allocations: 0 / 478.3 MB, free: 6.457 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002783/0.3597, allocations: 0 / 478.3 MB, free: 6.457 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.01847/0.3782, allocations: 6.291 MB / 484.6 MB, free: 100 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.178e-05/0.3783, allocations: 12.03 kB / 484.6 MB, free: 88 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003038/0.3813, allocations: 0.9325 MB / 485.5 MB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03878/0.4201, allocations: 6.063 MB / 491.6 MB, free: 9.066 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01199/0.4321, allocations: 4.413 MB / 496 MB, free: 4.586 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000398/0.4325, allocations: 308.1 kB / 496.3 MB, free: 4.281 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001915/0.4344, allocations: 431.8 kB / 496.7 MB, free: 3.859 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02859/0.463, allocations: 12.39 MB / 0.4972 GB, free: 6.715 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003068/0.4633, allocations: 59.52 kB / 0.4972 GB, free: 6.656 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001573/0.4649, allocations: 187.9 kB / 0.4974 GB, free: 6.473 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003599/0.4685, allocations: 2.031 MB / 0.4994 GB, free: 4.438 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02415/0.4926, allocations: 10.34 MB / 0.5095 GB, free: 10.09 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2851/0.7777, allocations: 41.62 MB / 0.5501 GB, free: 79.16 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01166/0.7894, allocations: 4.187 MB / 0.5542 GB, free: 78.68 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002422/0.7918, allocations: 1.843 MB / 0.556 GB, free: 77.93 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01107/0.8029, allocations: 5.633 MB / 0.5615 GB, free: 75.6 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.409e-05/0.8029, allocations: 54.59 kB / 0.5616 GB, free: 75.55 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 4.358e-06/0.8029, allocations: 0 / 0.5616 GB, free: 75.55 MB / 446.1 MB Notification: Performance of matching and sorting (n=223): time 0.05888/0.8618, allocations: 19.32 MB / 0.5805 GB, free: 59.36 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.001e-05/0.8618, allocations: 201.9 kB / 0.5806 GB, free: 59.11 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006045/0.8679, allocations: 4.728 MB / 0.5853 GB, free: 54.52 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002565/0.8682, allocations: 61.45 kB / 0.5853 GB, free: 54.46 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001683/0.8698, allocations: 3.696 MB / 0.5889 GB, free: 50.97 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006482/0.8705, allocations: 0.8693 MB / 0.5898 GB, free: 50.11 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00153/0.872, allocations: 1.278 MB / 0.591 GB, free: 48.82 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.775e-05/0.8721, allocations: 305.1 kB / 0.5913 GB, free: 48.52 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002727/0.8748, allocations: 2.23 MB / 0.5935 GB, free: 46.29 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003987/0.8788, allocations: 6.034 MB / 0.5994 GB, free: 38.45 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007434/0.8862, allocations: 8.915 MB / 0.6081 GB, free: 27.76 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001295/0.8863, allocations: 36 kB / 0.6081 GB, free: 27.72 MB / 446.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01386/0.9002, allocations: 9.042 MB / 0.617 GB, free: 18.67 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001263/0.9003, allocations: 60 kB / 0.617 GB, free: 18.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001849/0.9005, allocations: 132 kB / 0.6171 GB, free: 18.48 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003303/0.9038, allocations: 1.21 MB / 0.6183 GB, free: 17.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003833/0.9076, allocations: 1.411 MB / 0.6197 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009228/0.9169, allocations: 7.815 MB / 0.6273 GB, free: 7.938 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004551/0.9214, allocations: 343.6 kB / 0.6277 GB, free: 7.602 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008628/0.9223, allocations: 379.4 kB / 0.628 GB, free: 7.234 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.003396/0.9257, allocations: 2.475 MB / 0.6304 GB, free: 4.75 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007849/0.9265, allocations: 437.6 kB / 0.6309 GB, free: 4.32 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006917/0.9334, allocations: 3.865 MB / 0.6346 GB, free: 448 kB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.93e-05/0.9334, allocations: 24 kB / 0.6347 GB, free: 424 kB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.676e-05/0.9334, allocations: 11.94 kB / 0.6347 GB, free: 412 kB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.938e-05/0.9334, allocations: 7.969 kB / 0.6347 GB, free: 404 kB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02216/0.9556, allocations: 9.519 MB / 0.644 GB, free: 6.777 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.748e-05/0.9556, allocations: 8.031 kB / 0.644 GB, free: 6.77 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001587/0.9572, allocations: 327.5 kB / 0.6443 GB, free: 6.449 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003603/0.9608, allocations: 0.9847 MB / 0.6453 GB, free: 5.461 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003262/0.9612, allocations: 43.98 kB / 0.6453 GB, free: 5.418 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01099/0.9721, allocations: 6.511 MB / 0.6517 GB, free: 14.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.436e-06/0.9722, allocations: 7.938 kB / 0.6517 GB, free: 14.79 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01278/0.9849, allocations: 6.602 MB / 0.6581 GB, free: 8.105 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001549/0.9865, allocations: 397 kB / 0.6585 GB, free: 7.715 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00111/0.9876, allocations: 47.98 kB / 0.6585 GB, free: 7.668 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002247/0.9898, allocations: 107.9 kB / 0.6586 GB, free: 7.562 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004341/0.9903, allocations: 151.7 kB / 0.6588 GB, free: 7.418 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001927/0.9905, allocations: 63.98 kB / 0.6588 GB, free: 7.355 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.006064/0.9965, allocations: 2.828 MB / 0.6616 GB, free: 4.527 MB / 478.1 MB Notification: Performance of sort global known variables: time 1e-07/0.9965, allocations: 0 / 0.6616 GB, free: 4.527 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00709/1.004, allocations: 1.179 MB / 0.6628 GB, free: 3.348 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.01438/1.018, allocations: 7.314 MB / 0.6699 GB, free: 11.95 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009593/1.028, allocations: 5.315 MB / 0.6751 GB, free: 6.656 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.011e-05/1.028, allocations: 0 / 0.6751 GB, free: 6.656 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002962/1.031, allocations: 1.699 MB / 0.6767 GB, free: 4.941 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003928/1.034, allocations: 0.5686 MB / 0.6773 GB, free: 4.383 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09254/1.127, allocations: 51.56 MB / 0.7277 GB, free: 10.86 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006114/1.133, allocations: 3.354 MB / 0.7309 GB, free: 7.461 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00497/1.138, allocations: 1.938 MB / 0.7328 GB, free: 5.516 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003773/1.142, allocations: 2.284 MB / 0.7351 GB, free: 3.23 MB / 0.545 GB Notification: Performance of SimCode: time 9.41e-07/1.142, allocations: 3.938 kB / 0.7351 GB, free: 3.227 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3465/1.488, allocations: 85.12 MB / 0.8182 GB, free: 136.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.39/18.88, allocations: 6.797 kB / 0.8182 GB, free: 136.9 MB / 0.545 GB " [Timeout remaining time 641] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 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.csv","/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] "Error: Could not read variable j1.phi in file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.csv. Warning: Get data of variable j1.phi from file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.csv failed! Error: Could not read variable j1.w in file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.csv. Warning: Get data of variable j1.w from file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 21.477484881412238]