Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.MultiBody.Joints.RevoluteInitialization,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_RevoluteInitialization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.RevoluteInitialization,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_RevoluteInitialization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001946/0.001946, allocations: 112.8 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002176/0.002176, allocations: 184.8 kB / 18.71 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.381/1.381, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.219/0.219, allocations: 44.18 MB / 336.8 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 63.89 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3759/0.3772, allocations: 60.83 MB / 0.5184 GB, free: 3.312 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevoluteInitialization): time 0.01177/0.389, allocations: 10.26 MB / 0.5284 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009655/0.3987, allocations: 3.78 MB / 0.5321 GB, free: 9.367 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002702/0.4015, allocations: 58.22 kB / 0.5322 GB, free: 9.355 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005167/0.4067, allocations: 1.95 MB / 0.5341 GB, free: 8.031 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006354/0.4131, allocations: 1.697 MB / 0.5358 GB, free: 6.852 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002273/0.4154, allocations: 0.6246 MB / 0.5364 GB, free: 6.422 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006575/0.422, allocations: 3.321 MB / 0.5396 GB, free: 4.641 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004927/0.427, allocations: 2.582 MB / 0.5421 GB, free: 3.098 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003263/0.4303, allocations: 1.244 MB / 0.5433 GB, free: 2.391 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003488/0.4338, allocations: 1.679 MB / 0.545 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001221/0.4351, allocations: 252 kB / 0.5452 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003208/0.4383, allocations: 1.034 MB / 0.5462 GB, free: 15.57 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002271/0.4406, allocations: 1.578 MB / 0.5478 GB, free: 13.98 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003706/0.4444, allocations: 1.829 MB / 0.5496 GB, free: 12.14 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00807/0.4524, allocations: 5.843 MB / 0.5553 GB, free: 6.281 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.855e-06/0.4525, allocations: 7.938 kB / 0.5553 GB, free: 6.273 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.594e-06/0.4525, allocations: 0 / 0.5553 GB, free: 6.273 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002343/0.4527, allocations: 3.938 kB / 0.5553 GB, free: 6.27 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: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.009734/0.4625, allocations: 4.022 MB / 0.5592 GB, free: 2.18 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.092e-05/0.4626, allocations: 8.031 kB / 0.5592 GB, free: 2.172 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00153/0.4641, allocations: 0.6121 MB / 0.5598 GB, free: 1.551 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006383/0.4705, allocations: 1.786 MB / 0.5616 GB, free: 15.76 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004995/0.4755, allocations: 2.268 MB / 0.5638 GB, free: 13.43 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002314/0.4758, allocations: 193 kB / 0.564 GB, free: 13.24 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001058/0.4769, allocations: 251.8 kB / 0.5642 GB, free: 12.99 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01617/0.4931, allocations: 8.436 MB / 0.5724 GB, free: 3.891 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002098/0.4933, allocations: 43.53 kB / 0.5725 GB, free: 3.848 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009695/0.4943, allocations: 127.9 kB / 0.5726 GB, free: 3.723 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002897/0.4972, allocations: 1.699 MB / 0.5743 GB, free: 2.023 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01412/0.5114, allocations: 7.094 MB / 0.5812 GB, free: 10.92 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04471/0.5561, allocations: 34.02 MB / 0.6144 GB, free: 7.902 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007337/0.5635, allocations: 3.274 MB / 0.6176 GB, free: 4.477 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001979/0.5655, allocations: 1.462 MB / 0.619 GB, free: 2.996 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007641/0.5732, allocations: 4.357 MB / 0.6233 GB, free: 14.43 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.877e-05/0.5733, allocations: 47.11 kB / 0.6233 GB, free: 14.38 MB / 494.1 MB Notification: Performance of pre-optimization done (n=121): time 4.348e-06/0.5733, allocations: 0 / 0.6233 GB, free: 14.38 MB / 494.1 MB Notification: Performance of matching and sorting (n=129): time 0.02996/0.6033, allocations: 11.54 MB / 0.6346 GB, free: 2.688 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001151/0.6034, allocations: 170.9 kB / 0.6348 GB, free: 2.484 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007046/0.6105, allocations: 3.726 MB / 0.6384 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002142/0.6107, allocations: 45.64 kB / 0.6384 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002412/0.6132, allocations: 2.752 MB / 0.6411 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007107/0.6139, allocations: 0.5209 MB / 0.6416 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002074/0.616, allocations: 1.075 MB / 0.6427 GB, free: 10.31 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001034/0.6161, allocations: 309.1 kB / 0.643 GB, free: 10 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002577/0.6187, allocations: 1.697 MB / 0.6446 GB, free: 8.301 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005048/0.6237, allocations: 5.119 MB / 0.6496 GB, free: 1.449 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008297/0.6321, allocations: 7.401 MB / 0.6569 GB, free: 8.344 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001189/0.6322, allocations: 36 kB / 0.6569 GB, free: 8.309 MB / 0.5137 GB Notification: Performance of matching and sorting (n=692) (initialization): time 0.01194/0.6442, allocations: 6.69 MB / 0.6634 GB, free: 1.609 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001571/0.6444, allocations: 59.94 kB / 0.6635 GB, free: 1.551 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002459/0.6446, allocations: 124 kB / 0.6636 GB, free: 1.43 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008039/0.6454, allocations: 317.4 kB / 0.6639 GB, free: 1.117 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00401/0.6495, allocations: 1.244 MB / 0.6651 GB, free: 15.87 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002788/0.6523, allocations: 2.493 MB / 0.6676 GB, free: 13.24 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003782/0.6561, allocations: 295.5 kB / 0.6678 GB, free: 12.95 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008267/0.657, allocations: 332 kB / 0.6682 GB, free: 12.62 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 33 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (664): * Single equations (assignments): 660 * 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,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003345/0.6603, allocations: 1.785 MB / 0.6699 GB, free: 10.83 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000735/0.6611, allocations: 308 kB / 0.6702 GB, free: 10.52 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005105/0.6662, allocations: 2.371 MB / 0.6725 GB, free: 8.137 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.13e-05/0.6663, allocations: 12 kB / 0.6725 GB, free: 8.125 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.508e-05/0.6663, allocations: 4 kB / 0.6725 GB, free: 8.121 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.809e-05/0.6663, allocations: 7.984 kB / 0.6725 GB, free: 8.113 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01371/0.68, allocations: 5.91 MB / 0.6783 GB, free: 2.137 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.006e-05/0.6801, allocations: 7.938 kB / 0.6783 GB, free: 2.129 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008281/0.6809, allocations: 171.8 kB / 0.6785 GB, free: 1.961 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002105/0.683, allocations: 0.7185 MB / 0.6792 GB, free: 1.238 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001617/0.6832, allocations: 24 kB / 0.6792 GB, free: 1.215 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005972/0.6892, allocations: 4.821 MB / 0.6839 GB, free: 12.25 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.765e-06/0.6893, allocations: 7.969 kB / 0.6839 GB, free: 12.24 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006818/0.6961, allocations: 4.324 MB / 0.6881 GB, free: 7.883 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001071/0.6972, allocations: 357 kB / 0.6885 GB, free: 7.512 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007613/0.698, allocations: 23.98 kB / 0.6885 GB, free: 7.488 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001432/0.6994, allocations: 75.84 kB / 0.6886 GB, free: 7.414 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002467/0.6997, allocations: 72.56 kB / 0.6886 GB, free: 7.344 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001192/0.6998, allocations: 35.98 kB / 0.6887 GB, free: 7.309 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004292/0.7041, allocations: 2.327 MB / 0.6909 GB, free: 4.996 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.41e-07/0.7041, allocations: 0 / 0.6909 GB, free: 4.996 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004636/0.7088, allocations: 0.8125 MB / 0.6917 GB, free: 4.184 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.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 (96): * Single equations (assignments): 92 * 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,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007274/0.7161, allocations: 4.958 MB / 0.6966 GB, free: 15.19 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006337/0.7224, allocations: 4.045 MB / 0.7005 GB, free: 11.15 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.7225, allocations: 0 / 0.7005 GB, free: 11.15 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001558/0.724, allocations: 1.104 MB / 0.7016 GB, free: 10.03 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002852/0.7269, allocations: 388.4 kB / 0.702 GB, free: 9.652 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.332/1.059, allocations: 37.57 MB / 0.7387 GB, free: 176.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003776/1.063, allocations: 2.787 MB / 0.7414 GB, free: 175.7 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.00453/1.067, allocations: 1.658 MB / 0.743 GB, free: 175.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002482/1.07, allocations: 1.527 MB / 0.7445 GB, free: 174.3 MB / 0.5762 GB Notification: Performance of SimCode: time 9.32e-07/1.07, allocations: 1.188 kB / 0.7445 GB, free: 174.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09312/1.163, allocations: 57.69 MB / 0.8008 GB, free: 124.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 24/25.16, allocations: 9.781 kB / 0.8008 GB, free: 124.4 MB / 0.5762 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_RevoluteInitialization_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_RevoluteInitialization.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/RevoluteInitialization/RevoluteInitialization.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches