Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001678/0.001678, allocations: 116.5 kB / 20.43 MB, free: 1.301 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001926/0.001926, allocations: 207 kB / 23.74 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.458/1.458, allocations: 230.5 MB / 257.4 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001891/0.001891, allocations: 63.84 kB / 377.8 MB, free: 2.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2854/0.2873, allocations: 53.4 MB / 431.2 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01909/0.3064, allocations: 15.96 MB / 447.1 MB, free: 6.629 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01204/0.3184, allocations: 5.182 MB / 452.3 MB, free: 1.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003418/0.3219, allocations: 131.3 kB / 452.5 MB, free: 1.301 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009153/0.331, allocations: 4.505 MB / 457 MB, free: 12.78 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007128/0.3381, allocations: 2.572 MB / 459.5 MB, free: 10.2 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002888/0.341, allocations: 1.162 MB / 460.7 MB, free: 9.035 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01236/0.3534, allocations: 8.128 MB / 468.8 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006072/0.3594, allocations: 4.279 MB / 473.1 MB, free: 12.54 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004655/0.3641, allocations: 2.5 MB / 475.6 MB, free: 10.03 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006124/0.3702, allocations: 3.622 MB / 479.2 MB, free: 6.395 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001588/0.3718, allocations: 0.5 MB / 479.7 MB, free: 5.895 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003452/0.3753, allocations: 1.537 MB / 481.3 MB, free: 4.355 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003539/0.3788, allocations: 3.05 MB / 484.3 MB, free: 1.297 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004999/0.3838, allocations: 3.418 MB / 487.7 MB, free: 13.86 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01506/0.3989, allocations: 10.55 MB / 498.3 MB, free: 3.27 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.171e-05/0.3989, allocations: 0 / 498.3 MB, free: 3.27 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.3989, allocations: 0 / 498.3 MB, free: 3.27 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004846/0.3994, allocations: 0 / 498.3 MB, free: 3.27 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.02444/0.4238, allocations: 8.027 MB / 0.4944 GB, free: 11.16 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.847e-05/0.4239, allocations: 8.031 kB / 0.4944 GB, free: 11.15 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002608/0.4265, allocations: 1.078 MB / 0.4955 GB, free: 10.06 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05337/0.4798, allocations: 8.562 MB / 0.5039 GB, free: 1.484 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01372/0.4936, allocations: 5.443 MB / 0.5092 GB, free: 11.96 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003515/0.4939, allocations: 352.8 kB / 0.5095 GB, free: 11.61 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001925/0.4958, allocations: 471.7 kB / 0.51 GB, free: 11.15 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02827/0.5241, allocations: 14.46 MB / 0.5241 GB, free: 11.76 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002286/0.5243, allocations: 71.45 kB / 0.5242 GB, free: 11.69 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006455/0.525, allocations: 219.8 kB / 0.5244 GB, free: 11.47 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005664/0.5306, allocations: 2.836 MB / 0.5271 GB, free: 8.629 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2473/0.7779, allocations: 13.01 MB / 0.5398 GB, free: 91.51 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06091/0.8389, allocations: 58.01 MB / 0.5965 GB, free: 43.37 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0154/0.8543, allocations: 6.905 MB / 0.6032 GB, free: 36.43 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004707/0.859, allocations: 4.56 MB / 0.6077 GB, free: 31.86 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01846/0.8774, allocations: 12.27 MB / 0.6197 GB, free: 19.79 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.23e-05/0.8775, allocations: 72.69 kB / 0.6197 GB, free: 19.71 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 5.791e-06/0.8775, allocations: 0 / 0.6197 GB, free: 19.71 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 2.092/2.969, allocations: 411.2 MB / 1.021 GB, free: 140.5 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001052/2.969, allocations: 269.6 kB / 1.022 GB, free: 140.2 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007187/2.976, allocations: 5.498 MB / 1.027 GB, free: 134.9 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001914/2.978, allocations: 113.7 kB / 1.027 GB, free: 134.8 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002765/2.981, allocations: 4.147 MB / 1.031 GB, free: 131.8 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.003936/2.985, allocations: 2.111 MB / 1.033 GB, free: 129.8 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005682/2.991, allocations: 2.077 MB / 1.035 GB, free: 127.7 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 7.417e-05/2.991, allocations: 301.1 kB / 1.035 GB, free: 127.4 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0128/3.004, allocations: 10.88 MB / 1.046 GB, free: 116.5 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01474/3.018, allocations: 14.99 MB / 1.061 GB, free: 99.66 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02916/3.048, allocations: 27.12 MB / 1.087 GB, free: 70.71 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001239/3.048, allocations: 40 kB / 1.087 GB, free: 70.67 MB / 0.545 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.5635/3.611, allocations: 140.2 MB / 1.224 GB, free: 128.9 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.81e-05/3.611, allocations: 67.19 kB / 1.224 GB, free: 128.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001289/3.611, allocations: 136 kB / 1.224 GB, free: 128.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07467/3.686, allocations: 34.59 MB / 1.258 GB, free: 94.52 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004533/3.691, allocations: 1.479 MB / 1.26 GB, free: 93.16 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5179/4.209, allocations: 202.8 MB / 1.458 GB, free: 95.47 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01295/4.221, allocations: 1.709 MB / 1.459 GB, free: 94.48 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002693/4.224, allocations: 0.5234 MB / 1.46 GB, free: 94.02 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 626 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (783): * Single equations (assignments): 776 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(21,163,34.9%), (16,102,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,76)} Notification: Performance of prepare postOptimizeDAE: time 0.006882/4.231, allocations: 3.085 MB / 1.463 GB, free: 91.53 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002054/4.233, allocations: 0.6091 MB / 1.463 GB, free: 91.22 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5318/4.765, allocations: 136.2 MB / 1.596 GB, free: 151.6 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.463e-05/4.765, allocations: 58.06 kB / 1.596 GB, free: 151.6 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001769/4.765, allocations: 63.28 kB / 1.596 GB, free: 151.6 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000126/4.765, allocations: 27.89 kB / 1.596 GB, free: 151.6 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6184/5.384, allocations: 205.6 MB / 1.797 GB, free: 162.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.419e-05/5.384, allocations: 3.875 kB / 1.797 GB, free: 162.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001513/5.385, allocations: 331.4 kB / 1.798 GB, free: 162.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06849/5.454, allocations: 33.3 MB / 1.83 GB, free: 154.1 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001626/5.455, allocations: 99.98 kB / 1.83 GB, free: 154 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4631/5.918, allocations: 185.5 MB / 2.011 GB, free: 160 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.634e-06/5.918, allocations: 8.938 kB / 2.011 GB, free: 160 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.312/6.23, allocations: 152 MB / 2.16 GB, free: 24.74 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001875/6.232, allocations: 0.5824 MB / 2.16 GB, free: 24.16 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003201/6.236, allocations: 96 kB / 2.16 GB, free: 24.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009911/6.245, allocations: 1.485 MB / 2.162 GB, free: 22.59 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005201/6.251, allocations: 0.5213 MB / 2.162 GB, free: 22.07 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001472/6.252, allocations: 150.5 kB / 2.163 GB, free: 21.93 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004817/6.257, allocations: 3.517 MB / 2.166 GB, free: 18.43 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9e-08/6.257, allocations: 0 / 2.166 GB, free: 18.43 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01338/6.27, allocations: 3.783 MB / 2.17 GB, free: 14.66 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (165): * Single equations (assignments): 158 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,157,40.5%), (16,99,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,86)} Notification: Performance of Backend phase and start with SimCode phase: time 0.5947/6.865, allocations: 152.5 MB / 2.319 GB, free: 71.09 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0517/6.917, allocations: 32.6 MB / 2.35 GB, free: 38.59 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.09e-05/6.917, allocations: 5.094 kB / 2.35 GB, free: 38.59 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.04913/6.966, allocations: 19.56 MB / 2.37 GB, free: 19.02 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006906/6.973, allocations: 0.8329 MB / 2.37 GB, free: 18.21 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.245/8.218, allocations: 352.9 MB / 2.715 GB, free: 80.76 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007156/8.225, allocations: 5.097 MB / 2.72 GB, free: 75.67 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004246/8.23, allocations: 2.064 MB / 2.722 GB, free: 73.73 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003255/8.233, allocations: 3.025 MB / 2.725 GB, free: 70.71 MB / 0.5606 GB Notification: Performance of SimCode: time 8.61e-07/8.233, allocations: 0 / 2.725 GB, free: 70.71 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.171/9.404, allocations: 344.8 MB / 3.062 GB, free: 138.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 33.07/42.48, allocations: 0 / 3.062 GB, free: 138.5 MB / 0.5606 GB " [Timeout remaining time 617] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable j1.phi in file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv. Warning: Get data of variable j1.phi from file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv failed! Error: Could not read variable j1.w in file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv. Warning: Get data of variable j1.w from file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 45.37958781600173]