Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.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.Directions3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions3",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.0008389/0.0008388, allocations: 175 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.281/1.281, allocations: 205.4 MB / 222.9 MB, free: 8.949 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.0007111/0.0007111, allocations: 86.42 kB / 271.2 MB, free: 8.246 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.3058/0.3058, allocations: 43.56 MB / 363.1 MB, free: 51.92 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003713/0.0003714, allocations: 16 kB / 432.1 MB, free: 5.496 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09995/0.1003, allocations: 58.84 MB / 490.9 MB, free: 10.57 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.001536/0.1019, allocations: 1.345 MB / 492.3 MB, free: 9.211 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002143/0.1022, allocations: 99.69 kB / 492.4 MB, free: 9.113 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.102e-05/0.1022, allocations: 7.938 kB / 492.4 MB, free: 9.105 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 3.063e-05/0.1023, allocations: 11.92 kB / 492.4 MB, free: 9.094 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 8.946e-05/0.1024, allocations: 27.77 kB / 492.4 MB, free: 9.066 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 9.623e-05/0.1025, allocations: 15.98 kB / 492.4 MB, free: 9.051 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001317/0.1026, allocations: 119.4 kB / 492.5 MB, free: 8.934 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001162/0.1027, allocations: 37.08 kB / 492.6 MB, free: 8.898 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.717e-05/0.1028, allocations: 39.8 kB / 492.6 MB, free: 8.859 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.743e-05/0.1029, allocations: 47.78 kB / 492.7 MB, free: 8.812 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.668e-05/0.1029, allocations: 11.98 kB / 492.7 MB, free: 8.801 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.945e-05/0.1029, allocations: 4 kB / 492.7 MB, free: 8.797 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.069e-05/0.1029, allocations: 15.92 kB / 492.7 MB, free: 8.781 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 6.542e-05/0.103, allocations: 73.52 kB / 492.8 MB, free: 8.703 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001084/0.1031, allocations: 92.02 kB / 492.9 MB, free: 8.613 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1031, allocations: 4 kB / 492.9 MB, free: 8.609 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1031, allocations: 0 / 492.9 MB, free: 8.609 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.807e-06/0.1032, allocations: 0 / 492.9 MB, free: 8.609 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0004387/0.1036, allocations: 387.4 kB / 493.2 MB, free: 8.176 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.1036, allocations: 12.03 kB / 493.2 MB, free: 8.164 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.637e-05/0.1037, allocations: 46.73 kB / 493.3 MB, free: 8.109 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.884e-05/0.1037, allocations: 12.75 kB / 493.3 MB, free: 8.098 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001642/0.1039, allocations: 196.1 kB / 493.5 MB, free: 7.867 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.083e-05/0.1039, allocations: 8.609 kB / 493.5 MB, free: 7.859 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.814e-05/0.104, allocations: 16.38 kB / 493.5 MB, free: 7.844 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002177/0.1042, allocations: 125.6 kB / 493.6 MB, free: 7.711 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.726e-05/0.1042, allocations: 11.86 kB / 493.7 MB, free: 7.699 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.303e-05/0.1042, allocations: 4 kB / 493.7 MB, free: 7.695 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.1043, allocations: 4 kB / 493.7 MB, free: 7.691 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001065/0.1044, allocations: 59.91 kB / 493.7 MB, free: 7.633 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006961/0.1051, allocations: 0.5371 MB / 494.3 MB, free: 7.035 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001277/0.1052, allocations: 93.17 kB / 494.4 MB, free: 6.926 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.1e-05/0.1053, allocations: 29.66 kB / 494.4 MB, free: 6.891 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.265e-05/0.1053, allocations: 8.078 kB / 494.4 MB, free: 6.883 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.125e-05/0.1053, allocations: 34.56 kB / 494.4 MB, free: 6.84 MB / 378.7 MB Notification: Performance of pre-optimization done (n=8): time 1.122e-06/0.1053, allocations: 0 / 494.4 MB, free: 6.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0005568/0.1059, allocations: 305.8 kB / 494.7 MB, free: 6.492 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.979e-05/0.1059, allocations: 77.11 kB / 494.8 MB, free: 6.398 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.71e-05/0.106, allocations: 125.7 kB / 494.9 MB, free: 6.266 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.242e-05/0.106, allocations: 25.7 kB / 494.9 MB, free: 6.234 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.751e-05/0.1061, allocations: 119.6 kB / 495.1 MB, free: 6.113 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.623e-05/0.1062, allocations: 35.55 kB / 495.1 MB, free: 6.078 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.777e-06/0.1062, allocations: 0 / 495.1 MB, free: 6.078 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001058/0.1063, allocations: 330.8 kB / 495.4 MB, free: 5.746 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.747e-05/0.1063, allocations: 20 kB / 495.4 MB, free: 5.727 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.027e-05/0.1064, allocations: 83.97 kB / 495.5 MB, free: 5.617 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00013/0.1065, allocations: 128.4 kB / 495.6 MB, free: 5.461 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.247e-06/0.1065, allocations: 8 kB / 495.7 MB, free: 5.453 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002563/0.1068, allocations: 163.1 kB / 495.8 MB, free: 5.281 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.1068, allocations: 7.938 kB / 495.8 MB, free: 5.273 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.874e-06/0.1068, allocations: 7.938 kB / 495.8 MB, free: 5.266 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001781/0.107, allocations: 37.89 kB / 495.9 MB, free: 5.223 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.001e-05/0.1071, allocations: 27.98 kB / 495.9 MB, free: 5.195 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001616/0.1087, allocations: 2.532 MB / 498.4 MB, free: 2.395 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.878e-05/0.1088, allocations: 16.09 kB / 498.4 MB, free: 2.379 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.849e-06/0.1088, allocations: 12 kB / 498.5 MB, free: 2.367 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (14): * Single equations (assignments): 12 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.18e-05/0.1089, allocations: 125.7 kB / 498.6 MB, free: 2.234 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.234e-05/0.109, allocations: 7.906 kB / 498.6 MB, free: 2.227 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.5e-05/0.109, allocations: 11.91 kB / 498.6 MB, free: 2.215 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.109, allocations: 3.938 kB / 498.6 MB, free: 2.211 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.109, allocations: 4 kB / 498.6 MB, free: 2.207 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.109, allocations: 3.984 kB / 498.6 MB, free: 2.203 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002276/0.1093, allocations: 201.5 kB / 498.8 MB, free: 1.957 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.1093, allocations: 4 kB / 498.8 MB, free: 1.953 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.76e-05/0.1094, allocations: 15.98 kB / 498.8 MB, free: 1.938 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.064e-05/0.1095, allocations: 33.7 kB / 498.9 MB, free: 1.898 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.486e-06/0.1095, allocations: 0 / 498.9 MB, free: 1.898 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1798/0.2893, allocations: 2.533 MB / 0.4896 GB, free: 41.75 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.2894, allocations: 1.312 kB / 0.4896 GB, free: 41.75 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004228/0.2898, allocations: 309.9 kB / 0.4899 GB, free: 41.54 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.271e-05/0.2899, allocations: 80.25 kB / 0.49 GB, free: 41.44 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.172e-05/0.2899, allocations: 5.859 kB / 0.49 GB, free: 41.44 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001641/0.2901, allocations: 0 / 0.49 GB, free: 41.44 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.34e-05/0.2901, allocations: 11.72 kB / 0.49 GB, free: 41.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.139e-05/0.2901, allocations: 8.922 kB / 0.49 GB, free: 41.44 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.341e-05/0.2902, allocations: 91.28 kB / 0.4901 GB, free: 41.37 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.2902, allocations: 3.156 kB / 0.4901 GB, free: 41.37 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005645/0.2908, allocations: 38.5 kB / 0.4902 GB, free: 41.37 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (J1.w,J2.phi,J3.w,J4.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 (6): * Single equations (assignments): 4 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005437/0.2913, allocations: 0.8367 MB / 0.491 GB, free: 40.62 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004715/0.2918, allocations: 299.1 kB / 0.4913 GB, free: 40.41 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.2918, allocations: 1.406 kB / 0.4913 GB, free: 40.41 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002509/0.2921, allocations: 260.5 kB / 0.4915 GB, free: 40.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005876/0.2927, allocations: 22.69 kB / 0.4915 GB, free: 40.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001891/0.2946, allocations: 1.039 MB / 0.4925 GB, free: 39.53 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001909/0.2948, allocations: 0.7129 MB / 0.4932 GB, free: 38.83 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.907e-05/0.2949, allocations: 26.55 kB / 0.4933 GB, free: 38.82 MB / 378.7 MB Notification: Performance of SimCode: time 8.42e-07/0.2949, allocations: 0 / 0.4933 GB, free: 38.82 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.176/3.471, allocations: 2.816 MB / 0.496 GB, free: 38.66 MB / 378.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions3_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions3.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/Directions3/Directions3.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches