Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 119.4 kB / 17.79 MB, free: 5.285 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001483/0.001483, allocations: 200.3 kB / 20.74 MB, free: 2.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.515/1.515, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_4_1_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_1_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.001516/0.001516, allocations: 43.94 kB / 373 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1061, allocations: 53.33 MB / 426.3 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.2424/0.3485, allocations: 13.51 MB / 439.8 MB, free: 3.812 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01115/0.3597, allocations: 4.893 MB / 444.7 MB, free: 1.004 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003184/0.3628, allocations: 101.9 kB / 444.8 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008685/0.3715, allocations: 4.226 MB / 449 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00727/0.3788, allocations: 2.169 MB / 451.2 MB, free: 14.03 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003324/0.3821, allocations: 1.105 MB / 452.3 MB, free: 13.55 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01052/0.3926, allocations: 6.052 MB / 458.4 MB, free: 10.88 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006806/0.3994, allocations: 4.425 MB / 462.8 MB, free: 8.203 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005366/0.4048, allocations: 2.189 MB / 465 MB, free: 6.961 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005807/0.4106, allocations: 3.08 MB / 468.1 MB, free: 5.039 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002044/0.4127, allocations: 0.4937 MB / 468.5 MB, free: 5.039 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004393/0.4171, allocations: 1.664 MB / 470.2 MB, free: 4.418 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003984/0.421, allocations: 2.658 MB / 472.9 MB, free: 2.18 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005733/0.4268, allocations: 2.945 MB / 475.8 MB, free: 15.21 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01496/0.4417, allocations: 9.656 MB / 485.5 MB, free: 5.523 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.712e-06/0.4417, allocations: 0 / 485.5 MB, free: 5.523 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.4417, allocations: 0 / 485.5 MB, free: 5.523 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003771/0.4421, allocations: 0 / 485.5 MB, free: 5.523 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.01928/0.4614, allocations: 6.354 MB / 491.8 MB, free: 15.09 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.259e-05/0.4614, allocations: 8.031 kB / 491.8 MB, free: 15.08 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002408/0.4639, allocations: 0.9325 MB / 492.8 MB, free: 14.13 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03986/0.5037, allocations: 6.051 MB / 498.8 MB, free: 8.07 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01037/0.5141, allocations: 4.267 MB / 0.4913 GB, free: 3.746 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003192/0.5144, allocations: 308.3 kB / 0.4916 GB, free: 3.441 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001799/0.5162, allocations: 443.7 kB / 0.492 GB, free: 3.008 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02897/0.5452, allocations: 12.32 MB / 0.504 GB, free: 5.949 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002476/0.5454, allocations: 59.58 kB / 0.5041 GB, free: 5.891 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009705/0.5464, allocations: 187.9 kB / 0.5043 GB, free: 5.707 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003547/0.5499, allocations: 2.031 MB / 0.5063 GB, free: 3.672 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02401/0.5739, allocations: 10.36 MB / 0.5164 GB, free: 9.301 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0645/0.6384, allocations: 43.98 MB / 0.5593 GB, free: 12.1 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01402/0.6525, allocations: 4.663 MB / 0.5639 GB, free: 7.297 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002933/0.6554, allocations: 1.844 MB / 0.5657 GB, free: 5.441 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01256/0.668, allocations: 7.1 MB / 0.5726 GB, free: 14.05 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.866e-05/0.668, allocations: 59.5 kB / 0.5727 GB, free: 13.99 MB / 494.1 MB Notification: Performance of pre-optimization done (n=179): time 5.08e-06/0.668, allocations: 0 / 0.5727 GB, free: 13.99 MB / 494.1 MB Notification: Performance of matching and sorting (n=223): time 0.0734/0.7414, allocations: 19.23 MB / 0.5914 GB, free: 10.72 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001539/0.7416, allocations: 205.9 kB / 0.5916 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009291/0.7509, allocations: 4.497 MB / 0.596 GB, free: 5.969 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0005048/0.7514, allocations: 61.69 kB / 0.5961 GB, free: 5.902 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.003551/0.7549, allocations: 3.693 MB / 0.5997 GB, free: 2.176 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001423/0.7563, allocations: 0.8759 MB / 0.6006 GB, free: 1.293 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003489/0.7598, allocations: 1.278 MB / 0.6018 GB, free: 4 kB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001612/0.76, allocations: 301.1 kB / 0.6021 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004298/0.7643, allocations: 2.23 MB / 0.6043 GB, free: 13.47 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00791/0.7722, allocations: 5.984 MB / 0.6101 GB, free: 5.629 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2825/1.055, allocations: 8.915 MB / 0.6188 GB, free: 153.1 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001219/1.055, allocations: 41.72 kB / 0.6189 GB, free: 153.1 MB / 0.5137 GB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01917/1.074, allocations: 9.045 MB / 0.6277 GB, free: 150.8 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 9.583e-05/1.074, allocations: 61.47 kB / 0.6278 GB, free: 150.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001871/1.074, allocations: 131.2 kB / 0.6279 GB, free: 150.8 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004028/1.078, allocations: 1.21 MB / 0.6291 GB, free: 150.6 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004545/1.083, allocations: 1.413 MB / 0.6304 GB, free: 150.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01146/1.094, allocations: 8.021 MB / 0.6383 GB, free: 146.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004993/1.099, allocations: 341.5 kB / 0.6386 GB, free: 146.2 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000931/1.1, allocations: 375.8 kB / 0.639 GB, free: 146.1 MB / 0.5137 GB 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.004572/1.105, allocations: 2.479 MB / 0.6414 GB, free: 145 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008733/1.106, allocations: 427 kB / 0.6418 GB, free: 145 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007507/1.113, allocations: 3.877 MB / 0.6456 GB, free: 143.6 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.285e-05/1.113, allocations: 24.75 kB / 0.6456 GB, free: 143.6 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.468e-05/1.113, allocations: 6.875 kB / 0.6456 GB, free: 143.6 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.92e-05/1.113, allocations: 16.89 kB / 0.6456 GB, free: 143.6 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01547/1.129, allocations: 9.934 MB / 0.6553 GB, free: 139.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-05/1.129, allocations: 9.359 kB / 0.6553 GB, free: 139.8 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001296/1.13, allocations: 332.2 kB / 0.6556 GB, free: 139.8 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002952/1.133, allocations: 0.9892 MB / 0.6566 GB, free: 139.6 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001525/1.133, allocations: 40 kB / 0.6566 GB, free: 139.6 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007686/1.141, allocations: 6.69 MB / 0.6632 GB, free: 135.7 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.802e-06/1.141, allocations: 8.938 kB / 0.6632 GB, free: 135.7 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008725/1.15, allocations: 6.618 MB / 0.6697 GB, free: 129.2 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009305/1.15, allocations: 472.9 kB / 0.6701 GB, free: 128.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003894/1.151, allocations: 47.92 kB / 0.6701 GB, free: 128.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001451/1.152, allocations: 109.8 kB / 0.6703 GB, free: 128.6 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003277/1.153, allocations: 149 kB / 0.6704 GB, free: 128.4 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001307/1.153, allocations: 63.98 kB / 0.6705 GB, free: 128.3 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003281/1.156, allocations: 2.82 MB / 0.6732 GB, free: 125.5 MB / 0.5137 GB Notification: Performance of sort global known variables: time 8e-08/1.156, allocations: 0 / 0.6732 GB, free: 125.5 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004643/1.161, allocations: 1.166 MB / 0.6743 GB, free: 124.4 MB / 0.5137 GB 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.008767/1.169, allocations: 7.321 MB / 0.6815 GB, free: 117 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007226/1.177, allocations: 5.324 MB / 0.6867 GB, free: 111.7 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 8.716e-06/1.177, allocations: 0 / 0.6867 GB, free: 111.7 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002093/1.179, allocations: 1.71 MB / 0.6884 GB, free: 109.9 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003268/1.182, allocations: 0.5663 MB / 0.6889 GB, free: 109.4 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06484/1.247, allocations: 51.46 MB / 0.7392 GB, free: 52.01 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003389/1.25, allocations: 3.869 MB / 0.743 GB, free: 48.12 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003749/1.254, allocations: 1.946 MB / 0.7449 GB, free: 46.18 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002303/1.256, allocations: 2.284 MB / 0.7471 GB, free: 43.89 MB / 0.5137 GB Notification: Performance of SimCode: time 8.11e-07/1.256, allocations: 1.422 kB / 0.7471 GB, free: 43.89 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3953/1.652, allocations: 84.26 MB / 0.8294 GB, free: 178.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.39/28.04, allocations: 3.344 kB / 0.8294 GB, free: 178.2 MB / 0.545 GB " [Timeout remaining time 632] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.csv. Warning: Get data of variable j1.phi from file Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.csv failed! Error: Could not read variable j1.w in file Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.csv. Warning: Get data of variable j1.w from file Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 30.86083758699533]