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.00136/0.00136, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.001467/0.001467, allocations: 204.7 kB / 23.72 MB, free: 4.391 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.427/1.427, allocations: 230.5 MB / 257.4 MB, free: 7.734 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.00201/0.00201, allocations: 55.91 kB / 377.7 MB, free: 2.805 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2424/0.2444, allocations: 53.4 MB / 431.1 MB, free: 6.453 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01817/0.2626, allocations: 13.74 MB / 444.9 MB, free: 8.645 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01143/0.274, allocations: 4.949 MB / 449.8 MB, free: 3.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00248/0.2765, allocations: 131.3 kB / 450 MB, free: 3.551 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008406/0.2849, allocations: 4.31 MB / 454.3 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006715/0.2916, allocations: 2.594 MB / 456.9 MB, free: 12.62 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002485/0.2941, allocations: 1.154 MB / 458 MB, free: 11.47 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01104/0.3051, allocations: 8.128 MB / 466.1 MB, free: 3.324 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005534/0.3107, allocations: 4.255 MB / 470.4 MB, free: 14.99 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00472/0.3154, allocations: 2.512 MB / 472.9 MB, free: 12.47 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005748/0.3211, allocations: 3.403 MB / 476.3 MB, free: 9.055 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001449/0.3226, allocations: 0.5039 MB / 476.8 MB, free: 8.551 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003213/0.3258, allocations: 1.393 MB / 478.2 MB, free: 7.156 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003471/0.3293, allocations: 3.05 MB / 481.3 MB, free: 4.098 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004017/0.3333, allocations: 2.587 MB / 483.8 MB, free: 1.496 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01358/0.3469, allocations: 10.6 MB / 494.5 MB, free: 6.852 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.975e-06/0.3469, allocations: 0 / 494.5 MB, free: 6.852 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.3469, allocations: 0 / 494.5 MB, free: 6.852 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003552/0.3472, allocations: 0 / 494.5 MB, free: 6.852 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.0232/0.3704, allocations: 8.019 MB / 0.4907 GB, free: 14.75 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.36e-05/0.3705, allocations: 19.92 kB / 0.4907 GB, free: 14.73 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003248/0.3737, allocations: 1.086 MB / 0.4918 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05616/0.4299, allocations: 8.554 MB / 0.5001 GB, free: 5.066 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01383/0.4437, allocations: 5.459 MB / 0.5055 GB, free: 15.52 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003227/0.444, allocations: 348.8 kB / 0.5058 GB, free: 15.18 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001457/0.4455, allocations: 467.7 kB / 0.5062 GB, free: 14.72 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02854/0.474, allocations: 14.55 MB / 0.5204 GB, free: 15.22 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002217/0.4743, allocations: 71.47 kB / 0.5205 GB, free: 15.15 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007007/0.475, allocations: 211.8 kB / 0.5207 GB, free: 14.95 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005618/0.4806, allocations: 2.836 MB / 0.5235 GB, free: 12.1 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2192/0.6998, allocations: 12.95 MB / 0.5361 GB, free: 92.36 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06223/0.762, allocations: 55.01 MB / 0.5898 GB, free: 49.68 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01514/0.7772, allocations: 6.892 MB / 0.5966 GB, free: 42.76 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004552/0.7817, allocations: 4.549 MB / 0.601 GB, free: 38.2 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01795/0.7997, allocations: 11.43 MB / 0.6122 GB, free: 26.96 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.951e-05/0.7997, allocations: 68.64 kB / 0.6122 GB, free: 26.88 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 6.753e-06/0.7997, allocations: 0 / 0.6122 GB, free: 26.88 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 2.143/2.942, allocations: 411.3 MB / 1.014 GB, free: 147.3 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.365e-05/2.942, allocations: 261.7 kB / 1.014 GB, free: 147 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005897/2.948, allocations: 5.723 MB / 1.02 GB, free: 141.7 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001485/2.95, allocations: 117.3 kB / 1.02 GB, free: 141.6 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001822/2.952, allocations: 4.154 MB / 1.024 GB, free: 138.5 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002197/2.954, allocations: 2.101 MB / 1.026 GB, free: 136.4 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003555/2.957, allocations: 2.077 MB / 1.028 GB, free: 134.4 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.315e-05/2.957, allocations: 305.1 kB / 1.028 GB, free: 134.1 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0118/2.969, allocations: 10.88 MB / 1.039 GB, free: 123.2 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01375/2.983, allocations: 15.07 MB / 1.054 GB, free: 106.1 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02565/3.009, allocations: 27.12 MB / 1.08 GB, free: 77.21 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001014/3.009, allocations: 42.44 kB / 1.08 GB, free: 77.17 MB / 0.545 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.5476/3.556, allocations: 140.2 MB / 1.217 GB, free: 135.5 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.648e-05/3.556, allocations: 64 kB / 1.217 GB, free: 135.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001353/3.557, allocations: 140.8 kB / 1.217 GB, free: 135.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07222/3.629, allocations: 34.56 MB / 1.251 GB, free: 101.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004165/3.633, allocations: 1.483 MB / 1.252 GB, free: 99.81 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4559/4.089, allocations: 200.7 MB / 1.448 GB, free: 102.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0134/4.102, allocations: 1.706 MB / 1.45 GB, free: 101.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002358/4.105, allocations: 0.526 MB / 1.451 GB, free: 101.4 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.007056/4.112, allocations: 3.088 MB / 1.454 GB, free: 98.91 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002008/4.114, allocations: 0.6168 MB / 1.454 GB, free: 98.63 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5437/4.657, allocations: 136.2 MB / 1.587 GB, free: 157.9 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.653e-05/4.657, allocations: 55.5 kB / 1.587 GB, free: 157.9 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001238/4.658, allocations: 57.81 kB / 1.587 GB, free: 157.9 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.462e-05/4.658, allocations: 33.95 kB / 1.587 GB, free: 157.9 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6/5.258, allocations: 202.7 MB / 1.785 GB, free: 165.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.047e-05/5.258, allocations: 3.906 kB / 1.785 GB, free: 165.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001505/5.259, allocations: 333 kB / 1.786 GB, free: 165.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06929/5.328, allocations: 33.26 MB / 1.818 GB, free: 164.1 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001546/5.33, allocations: 116.9 kB / 1.818 GB, free: 164 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4585/5.789, allocations: 183.4 MB / 1.997 GB, free: 164.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.105e-06/5.789, allocations: 12.16 kB / 1.997 GB, free: 164.5 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3197/6.108, allocations: 152 MB / 2.146 GB, free: 38.34 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001819/6.11, allocations: 0.585 MB / 2.146 GB, free: 37.76 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003369/6.113, allocations: 96 kB / 2.147 GB, free: 37.66 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01021/6.124, allocations: 1.485 MB / 2.148 GB, free: 36.18 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003863/6.127, allocations: 0.5183 MB / 2.148 GB, free: 35.66 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009896/6.128, allocations: 147.7 kB / 2.149 GB, free: 35.52 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00459/6.133, allocations: 3.517 MB / 2.152 GB, free: 32.03 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/6.133, allocations: 3.938 kB / 2.152 GB, free: 32.03 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01218/6.145, allocations: 3.78 MB / 2.156 GB, free: 28.25 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.6075/6.753, allocations: 152.5 MB / 2.305 GB, free: 85.46 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.05676/6.81, allocations: 32.6 MB / 2.337 GB, free: 53.06 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.775e-05/6.81, allocations: 4 kB / 2.337 GB, free: 53.06 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.04101/6.851, allocations: 19.56 MB / 2.356 GB, free: 33.64 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01046/6.861, allocations: 0.8308 MB / 2.356 GB, free: 32.83 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.257/8.118, allocations: 352.9 MB / 2.701 GB, free: 89.65 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008441/8.126, allocations: 4.604 MB / 2.706 GB, free: 85.81 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004729/8.131, allocations: 2.063 MB / 2.708 GB, free: 83.87 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004478/8.136, allocations: 3.028 MB / 2.711 GB, free: 83.37 MB / 0.5606 GB Notification: Performance of SimCode: time 1.623e-06/8.136, allocations: 0.8125 kB / 2.711 GB, free: 83.37 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.92/9.056, allocations: 344.5 MB / 3.047 GB, free: 154.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.81/35.87, allocations: 2.578 kB / 3.047 GB, free: 154.2 MB / 0.5606 GB " [Timeout remaining time 624] (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: 38.9819793459028]