Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001736/0.001742, allocations: 174.4 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.225/1.225, allocations: 205.4 MB / 222.9 MB, free: 9.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007399/0.0007398, allocations: 103.5 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2888/0.2888, allocations: 43.56 MB / 363.1 MB, free: 52.22 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003479/0.000348, allocations: 20 kB / 432.1 MB, free: 5.727 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09804/0.09841, allocations: 58.84 MB / 490.9 MB, free: 10.8 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.002503/0.101, allocations: 1.882 MB / 492.8 MB, free: 8.91 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001211/0.1022, allocations: 0.7375 MB / 493.5 MB, free: 8.164 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001542/0.1024, allocations: 4 kB / 493.5 MB, free: 8.16 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001602/0.1025, allocations: 31.78 kB / 493.6 MB, free: 8.129 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001514/0.1027, allocations: 59.53 kB / 493.6 MB, free: 8.07 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000345/0.1031, allocations: 95.83 kB / 493.7 MB, free: 7.977 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003265/0.1034, allocations: 295.3 kB / 494 MB, free: 7.684 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001616/0.1036, allocations: 65.03 kB / 494.1 MB, free: 7.621 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002084/0.1038, allocations: 131.5 kB / 494.2 MB, free: 7.492 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002038/0.104, allocations: 131.5 kB / 494.3 MB, free: 7.363 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.622e-05/0.104, allocations: 12 kB / 494.3 MB, free: 7.352 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001217/0.1042, allocations: 59.95 kB / 494.4 MB, free: 7.293 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.52e-05/0.1042, allocations: 47.81 kB / 494.5 MB, free: 7.246 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000132/0.1044, allocations: 141.1 kB / 494.6 MB, free: 7.102 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002488/0.1046, allocations: 235.6 kB / 494.8 MB, free: 6.871 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1047, allocations: 3.938 kB / 494.8 MB, free: 6.867 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1047, allocations: 0 / 494.8 MB, free: 6.867 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.1047, allocations: 4 kB / 494.8 MB, free: 6.863 MB / 378.7 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.0008038/0.1055, allocations: 0.5185 MB / 495.3 MB, free: 6.297 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.1055, allocations: 12.03 kB / 495.4 MB, free: 6.285 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.372e-05/0.1056, allocations: 58.72 kB / 495.4 MB, free: 6.219 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.424e-05/0.1057, allocations: 24.66 kB / 495.4 MB, free: 6.195 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002557/0.1059, allocations: 243.9 kB / 495.7 MB, free: 5.918 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.591e-05/0.106, allocations: 20.81 kB / 495.7 MB, free: 5.898 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.111e-05/0.106, allocations: 28.36 kB / 495.7 MB, free: 5.871 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005097/0.1065, allocations: 263.3 kB / 496 MB, free: 5.609 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.876e-05/0.1066, allocations: 7.906 kB / 496 MB, free: 5.602 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.85e-05/0.1066, allocations: 8 kB / 496 MB, free: 5.594 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.1066, allocations: 11.94 kB / 496 MB, free: 5.582 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004571/0.1071, allocations: 237.6 kB / 496.2 MB, free: 5.348 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001243/0.1083, allocations: 0.7518 MB / 497 MB, free: 4.543 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004922/0.1088, allocations: 238.5 kB / 497.2 MB, free: 4.301 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002574/0.1091, allocations: 148.8 kB / 497.4 MB, free: 4.152 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.961e-05/0.1091, allocations: 4 kB / 497.4 MB, free: 4.148 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.227e-05/0.1092, allocations: 38.56 kB / 497.4 MB, free: 4.102 MB / 378.7 MB Notification: Performance of pre-optimization done (n=25): time 2.565e-06/0.1092, allocations: 3.984 kB / 497.4 MB, free: 4.098 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.002952/0.1121, allocations: 1.507 MB / 498.9 MB, free: 2.48 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.175e-05/0.1122, allocations: 51.41 kB / 499 MB, free: 2.418 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001737/0.1124, allocations: 198.6 kB / 499.2 MB, free: 2.211 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.198e-05/0.1124, allocations: 37.64 kB / 499.2 MB, free: 2.168 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.648e-05/0.1125, allocations: 144.6 kB / 499.3 MB, free: 2.023 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.104e-05/0.1126, allocations: 106.5 kB / 499.5 MB, free: 1.918 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.115e-05/0.1126, allocations: 8 kB / 499.5 MB, free: 1.91 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.1127, allocations: 330.8 kB / 499.8 MB, free: 1.578 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002469/0.113, allocations: 123.9 kB / 499.9 MB, free: 1.457 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002843/0.1133, allocations: 182.9 kB / 0.4884 GB, free: 1.266 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004083/0.1137, allocations: 243.2 kB / 0.4886 GB, free: 1.016 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.1137, allocations: 4 kB / 0.4886 GB, free: 1.012 MB / 378.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008092/0.1145, allocations: 453.8 kB / 0.489 GB, free: 0.5586 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.1146, allocations: 4 kB / 0.489 GB, free: 0.5547 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.1146, allocations: 0 / 0.489 GB, free: 0.5547 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004781/0.115, allocations: 232.7 kB / 0.4893 GB, free: 332 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002102/0.1153, allocations: 59.91 kB / 0.4893 GB, free: 272 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1683/0.2836, allocations: 0.7453 MB / 0.49 GB, free: 42.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003738/0.284, allocations: 52.59 kB / 0.4901 GB, free: 42.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.35e-05/0.2841, allocations: 13.27 kB / 0.4901 GB, free: 42.62 MB / 378.7 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,$PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 12} Notification: Performance of prepare postOptimizeDAE: time 0.0001788/0.2843, allocations: 146.3 kB / 0.4902 GB, free: 42.51 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.632e-05/0.2843, allocations: 24.16 kB / 0.4903 GB, free: 42.51 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.746e-05/0.2844, allocations: 37.61 kB / 0.4903 GB, free: 42.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.2844, allocations: 3.781 kB / 0.4903 GB, free: 42.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.2845, allocations: 2.562 kB / 0.4903 GB, free: 42.5 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.2845, allocations: 6.234 kB / 0.4903 GB, free: 42.5 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001571/0.286, allocations: 0.9509 MB / 0.4912 GB, free: 42.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.2861, allocations: 0 / 0.4912 GB, free: 42.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002579/0.2863, allocations: 49.81 kB / 0.4913 GB, free: 42.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004419/0.2868, allocations: 227.1 kB / 0.4915 GB, free: 42.14 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.313e-05/0.2868, allocations: 13.7 kB / 0.4915 GB, free: 42.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005381/0.2874, allocations: 0.7069 MB / 0.4922 GB, free: 41.63 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.2874, allocations: 1.969 kB / 0.4922 GB, free: 41.63 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00112/0.2885, allocations: 0.6426 MB / 0.4928 GB, free: 41.48 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001217/0.2886, allocations: 127.2 kB / 0.493 GB, free: 41.38 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.167e-05/0.2887, allocations: 10.98 kB / 0.493 GB, free: 41.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002677/0.289, allocations: 47.84 kB / 0.493 GB, free: 41.38 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001449/0.2891, allocations: 59.59 kB / 0.4931 GB, free: 41.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.587e-05/0.2892, allocations: 13.27 kB / 0.4931 GB, free: 41.38 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001162/0.2893, allocations: 146.9 kB / 0.4932 GB, free: 41.31 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2893, allocations: 0 / 0.4932 GB, free: 41.31 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003558/0.2897, allocations: 72.72 kB / 0.4933 GB, free: 41.31 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.001323/0.291, allocations: 1.205 MB / 0.4945 GB, free: 40.62 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000699/0.2917, allocations: 325.1 kB / 0.4948 GB, free: 40.62 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.2917, allocations: 4.906 kB / 0.4948 GB, free: 40.62 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003081/0.292, allocations: 160.8 kB / 0.4949 GB, free: 40.62 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003811/0.2924, allocations: 34.2 kB / 0.495 GB, free: 40.62 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0034/0.2958, allocations: 1.992 MB / 0.4969 GB, free: 39.91 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001755/0.296, allocations: 0.7496 MB / 0.4977 GB, free: 39.21 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001097/0.2961, allocations: 69.42 kB / 0.4977 GB, free: 39.21 MB / 378.7 MB Notification: Performance of SimCode: time 6.61e-07/0.2961, allocations: 0 / 0.4977 GB, free: 39.21 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.606/3.902, allocations: 4.698 MB / 0.5023 GB, free: 38.84 MB / 378.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches