Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.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.Directions3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions3",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.00494/0.00494, allocations: 100.8 kB / 15.87 MB, free: 6.309 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.001272/0.001272, allocations: 195.8 kB / 16.79 MB, free: 6.238 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.275/1.275, allocations: 205.1 MB / 222.6 MB, free: 4.738 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3027/0.3027, allocations: 43.49 MB / 313.5 MB, free: 8.527 MB / 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.001337/0.001337, allocations: 67.91 kB / 382.1 MB, free: 8.633 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1084, allocations: 57.78 MB / 439.9 MB, free: 14.76 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.002844/0.1113, allocations: 1.72 MB / 441.6 MB, free: 13.02 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002277/0.1116, allocations: 111.6 kB / 441.7 MB, free: 12.91 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.616e-05/0.1116, allocations: 0 / 441.7 MB, free: 12.91 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 5.312e-05/0.1117, allocations: 11.92 kB / 441.7 MB, free: 12.9 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.4e-05/0.1118, allocations: 27.77 kB / 441.8 MB, free: 12.88 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001072/0.1119, allocations: 23.92 kB / 441.8 MB, free: 12.85 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001193/0.1121, allocations: 123.5 kB / 441.9 MB, free: 12.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000116/0.1122, allocations: 29.09 kB / 441.9 MB, free: 12.7 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.118e-05/0.1122, allocations: 43.8 kB / 442 MB, free: 12.66 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.475e-05/0.1123, allocations: 51.77 kB / 442 MB, free: 12.61 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.148e-05/0.1124, allocations: 8 kB / 442 MB, free: 12.6 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.216e-05/0.1124, allocations: 8 kB / 442.1 MB, free: 12.59 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.543e-05/0.1124, allocations: 15.94 kB / 442.1 MB, free: 12.58 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.239e-05/0.1125, allocations: 55.73 kB / 442.1 MB, free: 12.52 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001421/0.1126, allocations: 119.8 kB / 442.2 MB, free: 12.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.1126, allocations: 0 / 442.2 MB, free: 12.41 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1126, allocations: 0 / 442.2 MB, free: 12.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.1127, allocations: 4 kB / 442.2 MB, free: 12.4 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0005111/0.1132, allocations: 411.3 kB / 442.6 MB, free: 11.95 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.1132, allocations: 8.031 kB / 442.7 MB, free: 11.94 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.085e-05/0.1133, allocations: 50.73 kB / 442.7 MB, free: 11.88 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.406e-05/0.1133, allocations: 12.84 kB / 442.7 MB, free: 11.87 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001577/0.1135, allocations: 196.1 kB / 442.9 MB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.207e-05/0.1135, allocations: 8.609 kB / 442.9 MB, free: 11.63 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.902e-05/0.1135, allocations: 12.38 kB / 442.9 MB, free: 11.62 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000198/0.1137, allocations: 125.6 kB / 443.1 MB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/0.1137, allocations: 11.84 kB / 443.1 MB, free: 11.47 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.304e-05/0.1138, allocations: 4 kB / 443.1 MB, free: 11.47 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.141e-06/0.1138, allocations: 4 kB / 443.1 MB, free: 11.46 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.781e-05/0.1139, allocations: 67.89 kB / 443.1 MB, free: 11.4 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000638/0.1145, allocations: 0.5294 MB / 443.7 MB, free: 10.81 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001231/0.1147, allocations: 97.16 kB / 443.8 MB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.863e-05/0.1147, allocations: 29.66 kB / 443.8 MB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.237e-05/0.1147, allocations: 4 kB / 443.8 MB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.323e-05/0.1148, allocations: 38.64 kB / 443.8 MB, free: 10.61 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 1.403e-06/0.1148, allocations: 3.938 kB / 443.8 MB, free: 10.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005259/0.1153, allocations: 305.3 kB / 444.1 MB, free: 10.26 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.794e-05/0.1153, allocations: 81.11 kB / 444.2 MB, free: 10.16 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.457e-05/0.1154, allocations: 122.2 kB / 444.3 MB, free: 10.03 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.218e-05/0.1155, allocations: 25.7 kB / 444.4 MB, free: 10 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.794e-05/0.1155, allocations: 127.5 kB / 444.5 MB, free: 9.871 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.603e-05/0.1156, allocations: 31.55 kB / 444.5 MB, free: 9.84 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.905e-05/0.1156, allocations: 25.72 kB / 444.5 MB, free: 9.809 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.656e-05/0.1157, allocations: 326.8 kB / 444.9 MB, free: 9.48 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.854e-05/0.1157, allocations: 23.98 kB / 444.9 MB, free: 9.457 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.993e-05/0.1158, allocations: 88.58 kB / 445 MB, free: 9.34 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001237/0.1159, allocations: 124.4 kB / 445.1 MB, free: 9.188 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1159, allocations: 3.938 kB / 445.1 MB, free: 9.184 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000241/0.1162, allocations: 163.3 kB / 445.3 MB, free: 9.012 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/0.1162, allocations: 8.031 kB / 445.3 MB, free: 9.004 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.1162, allocations: 7.938 kB / 445.3 MB, free: 8.996 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000159/0.1164, allocations: 41.64 kB / 445.3 MB, free: 8.949 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.591e-05/0.1165, allocations: 19.98 kB / 445.3 MB, free: 8.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001604/0.1181, allocations: 2.549 MB / 447.9 MB, free: 6.113 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.662e-05/0.1182, allocations: 11.91 kB / 447.9 MB, free: 6.102 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.488e-06/0.1182, allocations: 4 kB / 447.9 MB, free: 6.098 MB / 382.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001014/0.1183, allocations: 133.7 kB / 448 MB, free: 5.957 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.142e-05/0.1183, allocations: 4 kB / 448 MB, free: 5.953 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.614e-05/0.1184, allocations: 15.98 kB / 448 MB, free: 5.938 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.1184, allocations: 4 kB / 448 MB, free: 5.934 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.1184, allocations: 0 / 448 MB, free: 5.934 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.1184, allocations: 0 / 448 MB, free: 5.934 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002292/0.1186, allocations: 213.5 kB / 448.3 MB, free: 5.676 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.1186, allocations: 0 / 448.3 MB, free: 5.676 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.927e-05/0.1187, allocations: 12 kB / 448.3 MB, free: 5.664 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.778e-05/0.1188, allocations: 29.7 kB / 448.3 MB, free: 5.629 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.202e-05/0.1188, allocations: 8 kB / 448.3 MB, free: 5.621 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001456/0.1203, allocations: 2.54 MB / 450.8 MB, free: 2.816 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.1203, allocations: 0 / 450.8 MB, free: 2.816 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002634/0.1206, allocations: 304.5 kB / 451.1 MB, free: 2.496 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.574e-05/0.1206, allocations: 85.02 kB / 451.2 MB, free: 2.395 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.504e-05/0.1207, allocations: 8.031 kB / 451.2 MB, free: 2.387 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.409e-05/0.1208, allocations: 0 / 451.2 MB, free: 2.387 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.24e-05/0.1208, allocations: 4 kB / 451.2 MB, free: 2.383 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.865e-06/0.1208, allocations: 8 kB / 451.2 MB, free: 2.375 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.092e-05/0.1208, allocations: 95.31 kB / 451.3 MB, free: 2.281 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1209, allocations: 7.938 kB / 451.3 MB, free: 2.273 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003331/0.1212, allocations: 39.88 kB / 451.4 MB, free: 2.234 MB / 382.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005306/0.1217, allocations: 0.8421 MB / 452.2 MB, free: 1.359 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003928/0.1221, allocations: 309.1 kB / 452.5 MB, free: 1.031 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1221, allocations: 0 / 452.5 MB, free: 1.031 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002168/0.1224, allocations: 257.8 kB / 452.8 MB, free: 0.7539 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004191/0.1228, allocations: 27.98 kB / 452.8 MB, free: 0.7266 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1772/0.3, allocations: 1.994 MB / 454.8 MB, free: 47.12 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001552/0.3002, allocations: 0.7108 MB / 455.5 MB, free: 46.42 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.228e-05/0.3003, allocations: 11.56 kB / 455.5 MB, free: 46.42 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.519e-05/0.3004, allocations: 28.86 kB / 455.6 MB, free: 46.41 MB / 382.1 MB Notification: Performance of SimCode: time 1.232e-06/0.3004, allocations: 0 / 455.6 MB, free: 46.41 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01317/0.3135, allocations: 2.78 MB / 458.3 MB, free: 46.11 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001507/0.3137, allocations: 231.6 kB / 458.6 MB, free: 45.85 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.694/2.008, allocations: 0 / 458.6 MB, free: 45.85 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions3_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions3.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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_ModelicaTest.Rotational.ForUsersGuide.Directions3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches