Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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.001666/0.001666, allocations: 108.6 kB / 21.22 MB, free: 0.7305 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.001307/0.001307, allocations: 191.5 kB / 24.51 MB, free: 4.086 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.345/1.345, allocations: 225.6 MB / 253.3 MB, free: 13.02 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.PlanarFourbar,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001399/0.001399, allocations: 47.92 kB / 371.2 MB, free: 9.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2318/0.2332, allocations: 52.18 MB / 423.4 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.02037/0.2536, allocations: 18.3 MB / 441.7 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01278/0.2663, allocations: 6.091 MB / 447.8 MB, free: 6.094 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003405/0.2697, allocations: 171.1 kB / 448 MB, free: 5.926 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01136/0.2811, allocations: 6.371 MB / 454.3 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007846/0.2889, allocations: 2.93 MB / 457.3 MB, free: 12.59 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005176/0.2941, allocations: 2.308 MB / 459.6 MB, free: 10.28 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01341/0.3075, allocations: 9.517 MB / 469.1 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008666/0.3162, allocations: 6.234 MB / 475.3 MB, free: 10.41 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005679/0.3219, allocations: 3.253 MB / 478.6 MB, free: 7.152 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007059/0.3289, allocations: 4.475 MB / 483.1 MB, free: 2.664 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002174/0.3311, allocations: 0.7187 MB / 483.8 MB, free: 1.945 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004632/0.3357, allocations: 1.967 MB / 485.7 MB, free: 15.97 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005269/0.341, allocations: 3.935 MB / 489.7 MB, free: 12.03 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007646/0.3487, allocations: 4.415 MB / 494.1 MB, free: 7.594 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01787/0.3665, allocations: 13.93 MB / 0.4961 GB, free: 9.613 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.3665, allocations: 0 / 0.4961 GB, free: 9.613 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3665, allocations: 0 / 0.4961 GB, free: 9.613 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004162/0.367, allocations: 0 / 0.4961 GB, free: 9.613 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2348 * Number of variables: 2348 Notification: Performance of Generate backend data structure: time 0.02976/0.3967, allocations: 9.577 MB / 0.5055 GB, free: 15.95 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.3968, allocations: 8.031 kB / 0.5055 GB, free: 15.94 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002126/0.397, allocations: 179.7 kB / 0.5056 GB, free: 15.77 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003172/0.4001, allocations: 1.139 MB / 0.5068 GB, free: 14.62 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3183/0.7185, allocations: 23.27 MB / 0.5295 GB, free: 7.316 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3496/1.068, allocations: 7.887 MB / 0.5372 GB, free: 101.4 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004563/1.069, allocations: 438.2 kB / 0.5376 GB, free: 101.4 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002058/1.071, allocations: 0.5813 MB / 0.5382 GB, free: 101.4 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02494/1.096, allocations: 16.86 MB / 0.5546 GB, free: 93.34 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002121/1.096, allocations: 83.92 kB / 0.5547 GB, free: 93.27 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006689/1.096, allocations: 264.9 kB / 0.555 GB, free: 93.05 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003411/1.1, allocations: 2.664 MB / 0.5576 GB, free: 90.41 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02167/1.121, allocations: 14.4 MB / 0.5716 GB, free: 76.02 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06016/1.182, allocations: 63.6 MB / 0.6337 GB, free: 11.67 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01889/1.201, allocations: 7.904 MB / 0.6415 GB, free: 3.727 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004553/1.205, allocations: 4.589 MB / 0.6459 GB, free: 15.12 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02956/1.235, allocations: 17.46 MB / 0.663 GB, free: 13.76 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.642e-05/1.235, allocations: 60.56 kB / 0.6631 GB, free: 13.7 MB / 478.1 MB Notification: Performance of pre-optimization done (n=281): time 5.44e-06/1.235, allocations: 0 / 0.6631 GB, free: 13.7 MB / 478.1 MB Notification: Performance of matching and sorting (n=374): time 0.2669/1.502, allocations: 72.96 MB / 0.7343 GB, free: 5.094 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002765/1.502, allocations: 376.6 kB / 0.7347 GB, free: 4.645 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2288/1.731, allocations: 6.43 MB / 0.7409 GB, free: 183.1 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008895/1.732, allocations: 81.73 kB / 0.741 GB, free: 183.1 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003282/1.735, allocations: 5.026 MB / 0.7459 GB, free: 181 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.00156/1.736, allocations: 1.435 MB / 0.7473 GB, free: 179.9 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002589/1.739, allocations: 1.845 MB / 0.7491 GB, free: 179.1 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.333e-05/1.739, allocations: 312.4 kB / 0.7494 GB, free: 178.8 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005998/1.745, allocations: 5.659 MB / 0.755 GB, free: 176.7 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008161/1.753, allocations: 10.61 MB / 0.7653 GB, free: 168 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.016/1.769, allocations: 17.36 MB / 0.7823 GB, free: 155.9 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001118/1.769, allocations: 51.03 kB / 0.7823 GB, free: 155.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.03569/1.805, allocations: 21.92 MB / 0.8037 GB, free: 136.4 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.265e-05/1.805, allocations: 80.97 kB / 0.8038 GB, free: 136.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001367/1.805, allocations: 168 kB / 0.804 GB, free: 136.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0186/1.824, allocations: 6.862 MB / 0.8107 GB, free: 129.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006298/1.83, allocations: 2.07 MB / 0.8127 GB, free: 127.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03756/1.868, allocations: 36.11 MB / 0.848 GB, free: 90.83 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008296/1.876, allocations: 0.7217 MB / 0.8487 GB, free: 90.11 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001307/1.877, allocations: 0.5152 MB / 0.8492 GB, free: 89.59 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 779 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1015): * Single equations (assignments): 1008 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,68,84.0%), (2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.004775/1.882, allocations: 3.414 MB / 0.8525 GB, free: 86.17 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001205/1.883, allocations: 0.617 MB / 0.8531 GB, free: 85.55 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02607/1.909, allocations: 16.03 MB / 0.8687 GB, free: 69.45 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.937e-05/1.909, allocations: 52.55 kB / 0.8688 GB, free: 69.4 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.039e-05/1.909, allocations: 20 kB / 0.8688 GB, free: 69.38 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.245e-05/1.909, allocations: 15.94 kB / 0.8688 GB, free: 69.37 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04179/1.951, allocations: 31.18 MB / 0.8993 GB, free: 37.79 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.086e-05/1.951, allocations: 4 kB / 0.8993 GB, free: 37.79 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00302/1.954, allocations: 0.6045 MB / 0.8999 GB, free: 37.18 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01729/1.972, allocations: 6.442 MB / 0.9062 GB, free: 30.72 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006478/1.972, allocations: 60 kB / 0.9062 GB, free: 30.66 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2344/2.207, allocations: 34.35 MB / 0.9398 GB, free: 180.3 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/2.207, allocations: 3.938 kB / 0.9398 GB, free: 180.3 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03457/2.241, allocations: 23.5 MB / 0.9627 GB, free: 174.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001656/2.243, allocations: 0.576 MB / 0.9633 GB, free: 174.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001486/2.244, allocations: 68.56 kB / 0.9634 GB, free: 174.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004249/2.249, allocations: 425 kB / 0.9638 GB, free: 174.1 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001197/2.25, allocations: 266.7 kB / 0.964 GB, free: 174.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003579/2.25, allocations: 90.53 kB / 0.9641 GB, free: 174 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005242/2.255, allocations: 4.115 MB / 0.9681 GB, free: 172.7 MB / 0.545 GB Notification: Performance of sort global known variables: time 7e-08/2.255, allocations: 0 / 0.9681 GB, free: 172.7 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008234/2.264, allocations: 2.187 MB / 0.9703 GB, free: 172.4 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute1.phi,revolute1.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 (243): * Single equations (assignments): 236 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,62,84.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.03428/2.298, allocations: 24.28 MB / 0.994 GB, free: 153.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01783/2.316, allocations: 13.67 MB / 1.007 GB, free: 139.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.69e-05/2.316, allocations: 4 kB / 1.007 GB, free: 139.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.008618/2.324, allocations: 6.024 MB / 1.013 GB, free: 133.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007031/2.331, allocations: 0.9397 MB / 1.014 GB, free: 132.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1499/2.481, allocations: 102.9 MB / 1.115 GB, free: 21.67 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00627/2.488, allocations: 5.271 MB / 1.12 GB, free: 16.36 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007357/2.495, allocations: 3.029 MB / 1.123 GB, free: 13.32 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006581/2.502, allocations: 3.397 MB / 1.126 GB, free: 9.93 MB / 0.545 GB Notification: Performance of SimCode: time 1.132e-06/2.502, allocations: 4 kB / 1.126 GB, free: 9.926 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4012/2.903, allocations: 172.2 MB / 1.294 GB, free: 69.09 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.45/29.36, allocations: 4.062 kB / 1.294 GB, free: 69.09 MB / 0.5607 GB " [Timeout remaining time 630] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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: 34.56268930598162]