Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.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.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",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.0008492/0.0008491, allocations: 92.88 kB / 17.35 MB, free: 6.344 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.0008591/0.0008591, allocations: 168.9 kB / 18.25 MB, free: 5.508 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.269/1.269, allocations: 223.3 MB / 242.3 MB, free: 212 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1875/0.1875, allocations: 44.25 MB / 337.7 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002636/0.0002636, allocations: 8 kB / 410.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09901/0.09929, allocations: 61.93 MB / 472.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.002337/0.1017, allocations: 1.928 MB / 474.3 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00139/0.1031, allocations: 0.7246 MB / 475 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002381/0.1034, allocations: 4 kB / 475 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002384/0.1036, allocations: 35.78 kB / 475 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002846/0.1039, allocations: 55.53 kB / 475.1 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004885/0.1044, allocations: 103.9 kB / 475.2 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000439/0.1049, allocations: 323.2 kB / 475.5 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001806/0.1051, allocations: 73.02 kB / 475.6 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002426/0.1053, allocations: 127.5 kB / 475.7 MB, free: 9.883 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002306/0.1055, allocations: 147.4 kB / 475.9 MB, free: 9.738 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.065e-05/0.1056, allocations: 16 kB / 475.9 MB, free: 9.723 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001369/0.1057, allocations: 59.91 kB / 475.9 MB, free: 9.664 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.45e-05/0.1058, allocations: 47.81 kB / 476 MB, free: 9.617 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001276/0.106, allocations: 141.1 kB / 476.1 MB, free: 9.473 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003156/0.1063, allocations: 315.2 kB / 476.4 MB, free: 9.164 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.1063, allocations: 0 / 476.4 MB, free: 9.164 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1063, allocations: 0 / 476.4 MB, free: 9.164 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.983e-06/0.1063, allocations: 8 kB / 476.4 MB, free: 9.156 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0007976/0.1071, allocations: 0.5186 MB / 477 MB, free: 8.586 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.1072, allocations: 8.031 kB / 477 MB, free: 8.578 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.035e-05/0.1073, allocations: 58.67 kB / 477 MB, free: 8.512 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.06e-05/0.1073, allocations: 28.56 kB / 477 MB, free: 8.484 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002451/0.1076, allocations: 243.9 kB / 477.3 MB, free: 8.207 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.735e-05/0.1076, allocations: 16.81 kB / 477.3 MB, free: 8.191 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.645e-05/0.1077, allocations: 20.38 kB / 477.3 MB, free: 8.172 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004793/0.1082, allocations: 271.3 kB / 477.6 MB, free: 7.902 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.447e-05/0.1082, allocations: 4 kB / 477.6 MB, free: 7.898 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.051e-05/0.1082, allocations: 8 kB / 477.6 MB, free: 7.891 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.1082, allocations: 8 kB / 477.6 MB, free: 7.883 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004532/0.1087, allocations: 241.5 kB / 477.8 MB, free: 7.648 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001237/0.1099, allocations: 0.7518 MB / 478.6 MB, free: 6.848 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004872/0.1104, allocations: 238.5 kB / 478.8 MB, free: 6.605 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002455/0.1107, allocations: 148.8 kB / 479 MB, free: 6.457 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.461e-05/0.1107, allocations: 4 kB / 479 MB, free: 6.453 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.298e-05/0.1107, allocations: 35 kB / 479 MB, free: 6.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.813e-06/0.1108, allocations: 0 / 479 MB, free: 6.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002904/0.1137, allocations: 1.512 MB / 480.5 MB, free: 4.785 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.985e-05/0.1137, allocations: 55.41 kB / 480.6 MB, free: 4.719 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001809/0.1139, allocations: 199.1 kB / 480.8 MB, free: 4.512 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.501e-05/0.1139, allocations: 41.69 kB / 480.8 MB, free: 4.465 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.666e-05/0.114, allocations: 128.7 kB / 480.9 MB, free: 4.336 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.746e-05/0.1141, allocations: 114.4 kB / 481 MB, free: 4.223 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.037e-05/0.1142, allocations: 29.7 kB / 481.1 MB, free: 4.188 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.33e-05/0.1143, allocations: 346.7 kB / 481.4 MB, free: 3.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002357/0.1145, allocations: 123.9 kB / 481.5 MB, free: 3.719 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000256/0.1148, allocations: 172.2 kB / 481.7 MB, free: 3.539 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004037/0.1152, allocations: 251.3 kB / 481.9 MB, free: 3.281 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.1152, allocations: 0 / 481.9 MB, free: 3.281 MB / 350.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000741/0.1159, allocations: 445.7 kB / 482.4 MB, free: 2.836 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.116, allocations: 8 kB / 482.4 MB, free: 2.828 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.116, allocations: 0 / 482.4 MB, free: 2.828 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004655/0.1164, allocations: 236.7 kB / 482.6 MB, free: 2.594 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000206/0.1167, allocations: 51.91 kB / 482.7 MB, free: 2.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006717/0.1173, allocations: 0.7592 MB / 483.4 MB, free: 1.758 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002559/0.1176, allocations: 51.95 kB / 483.5 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.832e-05/0.1176, allocations: 16 kB / 483.5 MB, free: 1.691 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 (bearingFriction1.free,bearingFriction1.mode,$PRE.bearingFriction1.mode,bearingFriction1.locked,bearingFriction1.startBackward,$PRE.bearingFriction1.startBackward,bearingFriction1.startForward,$PRE.bearingFriction1.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * Array equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0001452/0.1178, allocations: 151.3 kB / 483.6 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.301e-05/0.1179, allocations: 27.66 kB / 483.7 MB, free: 1.508 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.571e-05/0.1179, allocations: 30.66 kB / 483.7 MB, free: 1.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.118, allocations: 0 / 483.7 MB, free: 1.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.118, allocations: 4 kB / 483.7 MB, free: 1.477 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.118, allocations: 3.984 kB / 483.7 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001436/0.1194, allocations: 0.9597 MB / 484.7 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.1194, allocations: 0 / 484.7 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002132/0.1196, allocations: 51.91 kB / 484.7 MB, free: 400 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003757/0.12, allocations: 212.7 kB / 484.9 MB, free: 184 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.562e-05/0.1201, allocations: 15.92 kB / 484.9 MB, free: 168 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000582/0.1207, allocations: 0.7162 MB / 485.7 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.1207, allocations: 8.094 kB / 485.7 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001071/0.1218, allocations: 0.6411 MB / 486.3 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001084/0.1219, allocations: 120.9 kB / 486.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.125e-05/0.1219, allocations: 11.94 kB / 486.4 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002721/0.1222, allocations: 52.02 kB / 486.5 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001088/0.1223, allocations: 47.91 kB / 486.5 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.332e-05/0.1224, allocations: 15.98 kB / 486.6 MB, free: 14.49 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001104/0.1225, allocations: 144.3 kB / 486.7 MB, free: 14.35 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.343e-06/0.1225, allocations: 3.938 kB / 486.7 MB, free: 14.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003401/0.1228, allocations: 79.94 kB / 486.8 MB, free: 14.27 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (inertia3.phi,inertia3.w) * Number of discrete variables: 4 (bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 3 (bearingFriction1.mode,bearingFriction1.startBackward,bearingFriction1.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * Array equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00138/0.1242, allocations: 1.221 MB / 488 MB, free: 13.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006549/0.1249, allocations: 319.9 kB / 488.3 MB, free: 12.7 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.626e-06/0.1249, allocations: 0 / 488.3 MB, free: 12.7 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003263/0.1252, allocations: 171.7 kB / 488.5 MB, free: 12.54 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000389/0.1256, allocations: 30.22 kB / 488.5 MB, free: 12.51 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004753/0.1304, allocations: 3.317 MB / 491.8 MB, free: 9.074 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002985/0.1307, allocations: 0.7525 MB / 492.6 MB, free: 8.297 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.362e-05/0.1308, allocations: 18.3 kB / 492.6 MB, free: 8.281 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001086/0.1309, allocations: 71.41 kB / 492.7 MB, free: 8.211 MB / 366.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1309, allocations: 0 / 492.7 MB, free: 8.211 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05358/0.1845, allocations: 6.924 MB / 499.6 MB, free: 1.461 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002436/0.1848, allocations: 248.2 kB / 499.8 MB, free: 1.195 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.025/2.21, allocations: 0 / 499.8 MB, free: 1.195 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches