Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.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.TestSpeed,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_TestSpeed",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.001052/0.001052, allocations: 173.5 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.214/1.214, allocations: 205.4 MB / 222.9 MB, free: 9.02 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.0007491/0.0007492, allocations: 90.3 kB / 271.2 MB, free: 8.242 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.2886/0.2886, allocations: 43.57 MB / 363.1 MB, free: 52.2 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003676/0.000368, allocations: 12 kB / 432.1 MB, free: 5.723 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09701/0.0974, allocations: 58.85 MB / 490.9 MB, free: 10.79 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.002638/0.1001, allocations: 2.209 MB / 493.1 MB, free: 8.57 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001174/0.1013, allocations: 0.6673 MB / 493.8 MB, free: 7.895 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002239/0.1015, allocations: 4 kB / 493.8 MB, free: 7.891 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001621/0.1017, allocations: 31.7 kB / 493.8 MB, free: 7.859 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002188/0.1019, allocations: 71.39 kB / 493.9 MB, free: 7.789 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002629/0.1022, allocations: 63.92 kB / 494 MB, free: 7.727 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003961/0.1026, allocations: 310.6 kB / 494.3 MB, free: 7.422 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001828/0.1028, allocations: 65.8 kB / 494.3 MB, free: 7.355 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000219/0.1031, allocations: 107.6 kB / 494.4 MB, free: 7.25 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001573/0.1032, allocations: 123.4 kB / 494.6 MB, free: 7.129 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.874e-05/0.1033, allocations: 12 kB / 494.6 MB, free: 7.117 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.781e-05/0.1033, allocations: 12 kB / 494.6 MB, free: 7.105 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.107e-05/0.1034, allocations: 39.84 kB / 494.6 MB, free: 7.066 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001481/0.1035, allocations: 153 kB / 494.8 MB, free: 6.91 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001979/0.1037, allocations: 203.7 kB / 495 MB, free: 6.711 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.1037, allocations: 0 / 495 MB, free: 6.711 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1037, allocations: 0 / 495 MB, free: 6.711 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.481e-06/0.1038, allocations: 0 / 495 MB, free: 6.711 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0007763/0.1045, allocations: 0.5574 MB / 495.5 MB, free: 6.105 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.1046, allocations: 8.031 kB / 495.5 MB, free: 6.098 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.102e-05/0.1046, allocations: 66.72 kB / 495.6 MB, free: 6.023 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.011e-05/0.1047, allocations: 36.56 kB / 495.6 MB, free: 5.988 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002479/0.105, allocations: 251.8 kB / 495.9 MB, free: 5.703 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.917e-05/0.105, allocations: 24.88 kB / 495.9 MB, free: 5.68 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.781e-05/0.105, allocations: 32.28 kB / 495.9 MB, free: 5.648 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004947/0.1055, allocations: 286.1 kB / 496.2 MB, free: 5.348 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.176e-05/0.1056, allocations: 7.906 kB / 496.2 MB, free: 5.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.312e-05/0.1056, allocations: 11.94 kB / 496.2 MB, free: 5.328 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.1056, allocations: 11.94 kB / 496.2 MB, free: 5.316 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004232/0.106, allocations: 203.5 kB / 496.4 MB, free: 5.121 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001566/0.1076, allocations: 1.313 MB / 497.8 MB, free: 3.703 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003827/0.108, allocations: 258.3 kB / 498 MB, free: 3.414 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002322/0.1083, allocations: 111.4 kB / 498.1 MB, free: 3.293 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.524e-05/0.1083, allocations: 4 kB / 498.1 MB, free: 3.289 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.237e-05/0.1083, allocations: 46.69 kB / 498.2 MB, free: 3.234 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 1.873e-06/0.1084, allocations: 0 / 498.2 MB, free: 3.234 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.002538/0.1109, allocations: 1.619 MB / 499.8 MB, free: 1.406 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.959e-05/0.111, allocations: 136.5 kB / 499.9 MB, free: 1.242 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002041/0.1112, allocations: 220.9 kB / 0.4884 GB, free: 1.012 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.412e-05/0.1112, allocations: 29.7 kB / 0.4884 GB, free: 0.9766 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000123/0.1114, allocations: 188.3 kB / 0.4886 GB, free: 0.7891 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.016e-05/0.1115, allocations: 110.3 kB / 0.4887 GB, free: 0.6797 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.546e-05/0.1115, allocations: 8 kB / 0.4887 GB, free: 0.6719 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001032/0.1116, allocations: 338.8 kB / 0.4891 GB, free: 340 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002423/0.1118, allocations: 112.8 kB / 0.4892 GB, free: 228 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1733/0.2851, allocations: 246.5 kB / 0.4894 GB, free: 42.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007341/0.2859, allocations: 397.5 kB / 0.4898 GB, free: 42.41 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.2859, allocations: 3.5 kB / 0.4898 GB, free: 42.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008071/0.2868, allocations: 412.1 kB / 0.4902 GB, free: 42.38 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.191e-05/0.2868, allocations: 6.625 kB / 0.4902 GB, free: 42.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.2868, allocations: 4.906 kB / 0.4902 GB, free: 42.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.255e-05/0.2868, allocations: 6.375 kB / 0.4902 GB, free: 42.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003798/0.2872, allocations: 104.8 kB / 0.4903 GB, free: 42.37 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.341e-05/0.2872, allocations: 10.72 kB / 0.4903 GB, free: 42.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002415/0.2875, allocations: 35.94 kB / 0.4903 GB, free: 42.37 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.92e-05/0.2875, allocations: 18.66 kB / 0.4904 GB, free: 42.37 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 48 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001378/0.2877, allocations: 159 kB / 0.4905 GB, free: 42.25 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.279e-05/0.2878, allocations: 26.25 kB / 0.4905 GB, free: 42.25 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.867e-05/0.2878, allocations: 38.66 kB / 0.4906 GB, free: 42.25 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.2879, allocations: 3.312 kB / 0.4906 GB, free: 42.25 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.2879, allocations: 2.031 kB / 0.4906 GB, free: 42.25 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.2879, allocations: 2.875 kB / 0.4906 GB, free: 42.25 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001311/0.2892, allocations: 1.013 MB / 0.4916 GB, free: 41.69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.2892, allocations: 1.891 kB / 0.4916 GB, free: 41.69 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003656/0.2896, allocations: 91.7 kB / 0.4917 GB, free: 41.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.2896, allocations: 3.25 kB / 0.4917 GB, free: 41.68 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.537e-05/0.2896, allocations: 7.719 kB / 0.4917 GB, free: 41.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.929e-06/0.2896, allocations: 3.078 kB / 0.4917 GB, free: 41.68 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.2896, allocations: 6.375 kB / 0.4917 GB, free: 41.68 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009813/0.2906, allocations: 0.7649 MB / 0.4924 GB, free: 41.29 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.251e-05/0.2907, allocations: 103.7 kB / 0.4925 GB, free: 41.19 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.094e-05/0.2907, allocations: 8.828 kB / 0.4925 GB, free: 41.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002788/0.291, allocations: 24.47 kB / 0.4926 GB, free: 41.19 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.525e-05/0.2911, allocations: 24.73 kB / 0.4926 GB, free: 41.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.342e-05/0.2912, allocations: 10.34 kB / 0.4926 GB, free: 41.19 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001474/0.2913, allocations: 159.5 kB / 0.4927 GB, free: 41.11 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2913, allocations: 0 / 0.4927 GB, free: 41.11 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004681/0.2918, allocations: 66.78 kB / 0.4928 GB, free: 41.11 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * 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 (32): * Single equations (assignments): 32 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001144/0.2929, allocations: 1.307 MB / 0.4941 GB, free: 40.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006367/0.2936, allocations: 293.8 kB / 0.4944 GB, free: 40.18 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.2936, allocations: 0 / 0.4944 GB, free: 40.18 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002681/0.2939, allocations: 152.1 kB / 0.4945 GB, free: 40.16 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006353/0.2945, allocations: 41.03 kB / 0.4945 GB, free: 40.16 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002991/0.2975, allocations: 2.217 MB / 0.4967 GB, free: 39.01 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002191/0.2978, allocations: 0.7701 MB / 0.4975 GB, free: 38.31 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001516/0.2979, allocations: 96.06 kB / 0.4975 GB, free: 38.3 MB / 378.7 MB Notification: Performance of SimCode: time 8.81e-07/0.2979, allocations: 0 / 0.4975 GB, free: 38.3 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.628/2.926, allocations: 4.03 MB / 0.5015 GB, free: 37.96 MB / 378.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_TestSpeed_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_TestSpeed.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches