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.001802/0.001802, allocations: 114 kB / 20.43 MB, free: 1.457 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.00142/0.00142, allocations: 215.3 kB / 23.74 MB, free: 4.672 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.389/1.389, allocations: 230.5 MB / 257.4 MB, free: 7.98 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.001999/0.001999, allocations: 67.88 kB / 377.8 MB, free: 2.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2455/0.2475, allocations: 53.4 MB / 431.2 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01778/0.2653, allocations: 15.95 MB / 447.1 MB, free: 6.645 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01092/0.2762, allocations: 5.186 MB / 452.3 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002527/0.2787, allocations: 135.2 kB / 452.5 MB, free: 1.309 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008282/0.287, allocations: 4.497 MB / 457 MB, free: 12.8 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006739/0.2937, allocations: 2.587 MB / 459.5 MB, free: 10.2 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002648/0.2964, allocations: 1.158 MB / 460.7 MB, free: 9.043 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01225/0.3086, allocations: 8.124 MB / 468.8 MB, free: 0.9062 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006991/0.3156, allocations: 4.287 MB / 473.1 MB, free: 12.54 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004896/0.3205, allocations: 2.496 MB / 475.6 MB, free: 10.04 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005963/0.3265, allocations: 3.622 MB / 479.2 MB, free: 6.402 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001478/0.328, allocations: 0.5039 MB / 479.7 MB, free: 5.898 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003301/0.3313, allocations: 1.529 MB / 481.3 MB, free: 4.367 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004063/0.3353, allocations: 3.046 MB / 484.3 MB, free: 1.312 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00839/0.3437, allocations: 3.426 MB / 487.7 MB, free: 13.86 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02202/0.3657, allocations: 10.54 MB / 498.3 MB, free: 3.277 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.877e-06/0.3657, allocations: 4 kB / 498.3 MB, free: 3.273 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3658, allocations: 0 / 498.3 MB, free: 3.273 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000392/0.3661, allocations: 0 / 498.3 MB, free: 3.273 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.03386/0.4, allocations: 8.026 MB / 0.4944 GB, free: 11.17 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.389e-05/0.4001, allocations: 8.031 kB / 0.4945 GB, free: 11.16 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004006/0.4041, allocations: 1.082 MB / 0.4955 GB, free: 10.07 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05369/0.4577, allocations: 8.562 MB / 0.5039 GB, free: 1.488 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01305/0.4708, allocations: 5.447 MB / 0.5092 GB, free: 11.96 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000393/0.4712, allocations: 341.7 kB / 0.5095 GB, free: 11.62 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001881/0.4731, allocations: 467.7 kB / 0.51 GB, free: 11.16 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02858/0.5017, allocations: 14.48 MB / 0.5241 GB, free: 11.76 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002471/0.5019, allocations: 67.48 kB / 0.5242 GB, free: 11.69 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00105/0.503, allocations: 215.8 kB / 0.5244 GB, free: 11.48 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005535/0.5085, allocations: 2.84 MB / 0.5271 GB, free: 8.633 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2043/0.7128, allocations: 13 MB / 0.5398 GB, free: 93 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05494/0.7678, allocations: 58.01 MB / 0.5965 GB, free: 45.03 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01483/0.7826, allocations: 6.904 MB / 0.6032 GB, free: 38.09 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004533/0.7871, allocations: 4.545 MB / 0.6077 GB, free: 33.53 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01802/0.8051, allocations: 12.28 MB / 0.6197 GB, free: 21.3 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.092e-05/0.8052, allocations: 64.7 kB / 0.6197 GB, free: 21.23 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 5.64e-06/0.8052, allocations: 3.938 kB / 0.6197 GB, free: 21.22 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 1.947/2.752, allocations: 411.2 MB / 1.021 GB, free: 110.9 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.419e-05/2.753, allocations: 266.7 kB / 1.022 GB, free: 110.6 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006004/2.759, allocations: 5.503 MB / 1.027 GB, free: 105.3 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001619/2.76, allocations: 116 kB / 1.027 GB, free: 105.2 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001828/2.762, allocations: 4.147 MB / 1.031 GB, free: 101.7 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002261/2.764, allocations: 2.098 MB / 1.033 GB, free: 99.67 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003737/2.768, allocations: 2.086 MB / 1.035 GB, free: 97.57 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.28e-05/2.768, allocations: 301.1 kB / 1.035 GB, free: 97.28 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01144/2.779, allocations: 10.88 MB / 1.046 GB, free: 86.39 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01506/2.795, allocations: 14.99 MB / 1.061 GB, free: 69.57 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02873/2.823, allocations: 27.12 MB / 1.087 GB, free: 40.58 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001369/2.823, allocations: 40 kB / 1.087 GB, free: 40.54 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.5461/3.37, allocations: 140.2 MB / 1.224 GB, free: 114.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001007/3.37, allocations: 67.62 kB / 1.224 GB, free: 114.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000123/3.37, allocations: 139.7 kB / 1.224 GB, free: 114.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07286/3.443, allocations: 34.58 MB / 1.258 GB, free: 80.03 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004645/3.447, allocations: 1.482 MB / 1.26 GB, free: 78.68 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4668/3.914, allocations: 202.8 MB / 1.458 GB, free: 80.89 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01215/3.926, allocations: 1.704 MB / 1.459 GB, free: 79.19 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001786/3.928, allocations: 0.53 MB / 1.46 GB, free: 78.66 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.005118/3.933, allocations: 3.085 MB / 1.463 GB, free: 75.7 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001553/3.935, allocations: 0.6144 MB / 1.463 GB, free: 75.39 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5671/4.502, allocations: 136.2 MB / 1.596 GB, free: 142.4 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.669e-05/4.502, allocations: 62.62 kB / 1.596 GB, free: 142.4 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001598/4.502, allocations: 60 kB / 1.596 GB, free: 142.3 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001157/4.502, allocations: 23.91 kB / 1.596 GB, free: 142.3 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6009/5.103, allocations: 205.6 MB / 1.797 GB, free: 161.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.708e-05/5.103, allocations: 7.656 kB / 1.797 GB, free: 161.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001474/5.105, allocations: 328.4 kB / 1.798 GB, free: 161.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06736/5.172, allocations: 33.3 MB / 1.83 GB, free: 139.7 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001524/5.173, allocations: 103.8 kB / 1.83 GB, free: 139.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4388/5.612, allocations: 185.5 MB / 2.011 GB, free: 156.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.696e-06/5.612, allocations: 11.66 kB / 2.011 GB, free: 156.1 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5476/6.16, allocations: 152 MB / 2.16 GB, free: 162 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001802/6.162, allocations: 0.5799 MB / 2.16 GB, free: 162 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003108/6.165, allocations: 99.25 kB / 2.16 GB, free: 162 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0153/6.18, allocations: 1.485 MB / 2.162 GB, free: 162 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.006252/6.186, allocations: 0.5198 MB / 2.162 GB, free: 162 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001993/6.188, allocations: 141 kB / 2.163 GB, free: 162 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.007956/6.196, allocations: 3.513 MB / 2.166 GB, free: 161.8 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.31e-07/6.196, allocations: 2.594 kB / 2.166 GB, free: 161.8 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.02153/6.218, allocations: 3.789 MB / 2.17 GB, free: 161.8 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.3327/6.55, allocations: 152.5 MB / 2.319 GB, free: 54.82 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.05258/6.603, allocations: 32.61 MB / 2.35 GB, free: 22.26 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.273e-05/6.603, allocations: 0 / 2.35 GB, free: 22.26 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.2846/6.888, allocations: 19.54 MB / 2.37 GB, free: 184 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006447/6.894, allocations: 0.8378 MB / 2.37 GB, free: 183.9 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8918/7.786, allocations: 352.9 MB / 2.715 GB, free: 60.95 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006048/7.792, allocations: 5.098 MB / 2.72 GB, free: 55.86 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004348/7.796, allocations: 2.066 MB / 2.722 GB, free: 53.82 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00319/7.8, allocations: 3.026 MB / 2.725 GB, free: 50.79 MB / 0.5606 GB Notification: Performance of SimCode: time 1.433e-06/7.8, allocations: 4 kB / 2.725 GB, free: 50.79 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8014/8.601, allocations: 344.7 MB / 3.062 GB, free: 110.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 30.95/39.55, allocations: 3.938 kB / 3.062 GB, free: 110.9 MB / 0.5606 GB " [Timeout remaining time 620] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 43.501417649909854]