Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions.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 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 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 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.Directions,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions",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.001172/0.001179, allocations: 101.6 kB / 16.4 MB, free: 6.461 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.001195/0.001195, allocations: 192.2 kB / 17.34 MB, free: 5.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.292/1.292, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1913/0.1913, allocations: 43.52 MB / 314.1 MB, free: 456 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001336/0.001336, allocations: 69.62 kB / 441.3 MB, free: 6.152 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0924/0.09374, allocations: 57.78 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions): time 0.004054/0.09784, allocations: 2.861 MB / 0.4902 GB, free: 9.43 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001472/0.09936, allocations: 0.7447 MB / 0.4909 GB, free: 8.676 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002766/0.09966, allocations: 11.94 kB / 0.4909 GB, free: 8.664 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002855/0.09999, allocations: 63.38 kB / 0.491 GB, free: 8.602 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003644/0.1004, allocations: 130.9 kB / 0.4911 GB, free: 8.473 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003335/0.1007, allocations: 91.83 kB / 0.4912 GB, free: 8.383 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005168/0.1012, allocations: 446.4 kB / 0.4916 GB, free: 7.945 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003199/0.1016, allocations: 186.1 kB / 0.4918 GB, free: 7.758 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002553/0.1018, allocations: 179.3 kB / 0.492 GB, free: 7.582 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002629/0.1021, allocations: 187.2 kB / 0.4921 GB, free: 7.398 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.307e-05/0.1022, allocations: 36 kB / 0.4922 GB, free: 7.363 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.457e-05/0.1022, allocations: 36 kB / 0.4922 GB, free: 7.328 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.685e-05/0.1023, allocations: 87.67 kB / 0.4923 GB, free: 7.242 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001751/0.1025, allocations: 203 kB / 0.4925 GB, free: 7.043 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004447/0.103, allocations: 458 kB / 0.4929 GB, free: 6.594 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.103, allocations: 0 / 0.4929 GB, free: 6.594 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.103, allocations: 0 / 0.4929 GB, free: 6.594 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.297e-05/0.103, allocations: 0 / 0.4929 GB, free: 6.594 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001064/0.1041, allocations: 0.6702 MB / 0.4936 GB, free: 5.871 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.1041, allocations: 15.89 kB / 0.4936 GB, free: 5.855 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.777e-05/0.1042, allocations: 78.72 kB / 0.4937 GB, free: 5.77 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.619e-05/0.1043, allocations: 44.66 kB / 0.4937 GB, free: 5.727 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004719/0.1048, allocations: 292.7 kB / 0.494 GB, free: 5.398 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.037e-05/0.1048, allocations: 29.38 kB / 0.494 GB, free: 5.371 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.907e-05/0.1049, allocations: 48.33 kB / 0.4941 GB, free: 5.324 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007036/0.1056, allocations: 393.1 kB / 0.4944 GB, free: 4.926 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.474e-05/0.1057, allocations: 4 kB / 0.4944 GB, free: 4.922 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.311e-05/0.1057, allocations: 16 kB / 0.4945 GB, free: 4.906 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.1057, allocations: 8 kB / 0.4945 GB, free: 4.898 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005409/0.1063, allocations: 247.8 kB / 0.4947 GB, free: 4.656 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00156/0.1078, allocations: 1.101 MB / 0.4958 GB, free: 3.496 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005198/0.1084, allocations: 347.5 kB / 0.4961 GB, free: 3.129 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000279/0.1087, allocations: 179.2 kB / 0.4963 GB, free: 2.945 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.888e-05/0.1087, allocations: 8 kB / 0.4963 GB, free: 2.938 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.299e-05/0.1087, allocations: 46.48 kB / 0.4963 GB, free: 2.883 MB / 382.1 MB Notification: Performance of pre-optimization done (n=39): time 1.643e-06/0.1088, allocations: 0 / 0.4963 GB, free: 2.883 MB / 382.1 MB Notification: Performance of matching and sorting (n=57): time 0.003743/0.1125, allocations: 2.456 MB / 0.4987 GB, free: 160 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.111e-05/0.1126, allocations: 110.8 kB / 0.4988 GB, free: 24 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002318/0.1128, allocations: 238.7 kB / 0.4991 GB, free: 15.78 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.72e-05/0.1129, allocations: 29.7 kB / 0.4991 GB, free: 15.75 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001119/0.113, allocations: 192.9 kB / 0.4993 GB, free: 15.55 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001368/0.1131, allocations: 206.2 kB / 0.4995 GB, free: 15.36 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001115/0.1132, allocations: 90.19 kB / 0.4996 GB, free: 15.26 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.1134, allocations: 346.7 kB / 0.4999 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000254/0.1136, allocations: 137 kB / 0.5 GB, free: 14.78 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003107/0.1139, allocations: 227.8 kB / 0.5002 GB, free: 14.52 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005905/0.1145, allocations: 394 kB / 0.5006 GB, free: 14.1 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-06/0.1146, allocations: 7.938 kB / 0.5006 GB, free: 14.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009819/0.1155, allocations: 0.5578 MB / 0.5012 GB, free: 13.52 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.955e-05/0.1156, allocations: 8 kB / 0.5012 GB, free: 13.51 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.1156, allocations: 144 / 0.5012 GB, free: 13.51 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003559/0.116, allocations: 122.5 kB / 0.5013 GB, free: 13.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003713/0.1163, allocations: 107.9 kB / 0.5014 GB, free: 13.27 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003909/0.1203, allocations: 5.206 MB / 0.5065 GB, free: 7.645 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002297/0.1205, allocations: 16 kB / 0.5065 GB, free: 7.629 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.594e-05/0.1206, allocations: 27.98 kB / 0.5065 GB, free: 7.602 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (51): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,5,100.0%), (1,5,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001707/0.1207, allocations: 169.7 kB / 0.5067 GB, free: 7.426 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001047/0.1208, allocations: 43.75 kB / 0.5067 GB, free: 7.383 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.742e-05/0.1209, allocations: 46.17 kB / 0.5068 GB, free: 7.336 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.692e-06/0.1209, allocations: 8 kB / 0.5068 GB, free: 7.328 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.12e-05/0.1209, allocations: 3.938 kB / 0.5068 GB, free: 7.324 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.794e-06/0.121, allocations: 7.984 kB / 0.5068 GB, free: 7.316 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001869/0.1228, allocations: 1.316 MB / 0.5081 GB, free: 5.926 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.1229, allocations: 4.094 kB / 0.5081 GB, free: 5.922 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004076/0.1233, allocations: 99.88 kB / 0.5082 GB, free: 5.824 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002715/0.1235, allocations: 94.45 kB / 0.5083 GB, free: 5.723 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.039e-05/0.1236, allocations: 12 kB / 0.5083 GB, free: 5.711 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003061/0.1267, allocations: 4.427 MB / 0.5126 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.1267, allocations: 4.031 kB / 0.5126 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001245/0.1279, allocations: 0.9319 MB / 0.5135 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.884e-05/0.128, allocations: 108.9 kB / 0.5136 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.511e-05/0.1281, allocations: 12.06 kB / 0.5136 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002605/0.1283, allocations: 16.12 kB / 0.5136 GB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.392e-05/0.1284, allocations: 55.81 kB / 0.5137 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.425e-05/0.1285, allocations: 19.98 kB / 0.5137 GB, free: 15.66 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001421/0.1286, allocations: 170 kB / 0.5139 GB, free: 15.5 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1286, allocations: 4 kB / 0.5139 GB, free: 15.5 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006431/0.1293, allocations: 120 kB / 0.514 GB, free: 15.38 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (J5.phi,J5.w,J3.phi,J3.w,J1.phi,J1.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 (48): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001486/0.1308, allocations: 1.479 MB / 0.5154 GB, free: 13.86 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001193/0.132, allocations: 0.7732 MB / 0.5162 GB, free: 13.04 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.132, allocations: 8.188 kB / 0.5162 GB, free: 13.04 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007156/0.1327, allocations: 0.57 MB / 0.5168 GB, free: 12.43 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006346/0.1334, allocations: 60.45 kB / 0.5168 GB, free: 12.37 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0052/0.1386, allocations: 4.149 MB / 0.5209 GB, free: 8.027 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004437/0.139, allocations: 0.824 MB / 0.5217 GB, free: 7.18 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001434/0.1392, allocations: 39.25 kB / 0.5217 GB, free: 7.141 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001738/0.1394, allocations: 127.4 kB / 0.5218 GB, free: 7.016 MB / 414.1 MB Notification: Performance of SimCode: time 5.1e-07/0.1394, allocations: 0 / 0.5218 GB, free: 7.016 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2087/0.3481, allocations: 8.275 MB / 0.5299 GB, free: 40.33 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.562/9.91, allocations: 6.016 kB / 0.5299 GB, free: 40.33 MB / 414.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/Directions/Directions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches