Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.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.TestSpeed,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestSpeed",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.001843/0.001843, allocations: 107.2 kB / 16.41 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.002098/0.002098, allocations: 189.5 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.361/1.361, allocations: 205.1 MB / 223.2 MB, free: 12.24 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.2142/0.2142, allocations: 43.53 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.00217/0.00217, allocations: 73.45 kB / 441.3 MB, free: 6.172 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1083, allocations: 57.78 MB / 499.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.004471/0.1128, allocations: 2.62 MB / 0.4899 GB, free: 9.684 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001353/0.1142, allocations: 0.6787 MB / 0.4906 GB, free: 8.996 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000216/0.1144, allocations: 7.938 kB / 0.4906 GB, free: 8.988 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001824/0.1146, allocations: 47.52 kB / 0.4906 GB, free: 8.941 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002599/0.1149, allocations: 83.27 kB / 0.4907 GB, free: 8.859 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003385/0.1153, allocations: 91.81 kB / 0.4908 GB, free: 8.77 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005004/0.1158, allocations: 326.6 kB / 0.4911 GB, free: 8.449 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002242/0.116, allocations: 89.77 kB / 0.4912 GB, free: 8.363 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003066/0.1163, allocations: 123.5 kB / 0.4913 GB, free: 8.242 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002599/0.1166, allocations: 131.4 kB / 0.4915 GB, free: 8.113 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.629e-05/0.1167, allocations: 24 kB / 0.4915 GB, free: 8.09 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.831e-05/0.1167, allocations: 24 kB / 0.4915 GB, free: 8.066 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.561e-05/0.1168, allocations: 63.69 kB / 0.4916 GB, free: 8.004 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001656/0.117, allocations: 139.3 kB / 0.4917 GB, free: 7.867 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003901/0.1174, allocations: 302.6 kB / 0.492 GB, free: 7.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.1174, allocations: 0 / 0.492 GB, free: 7.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1174, allocations: 0 / 0.492 GB, free: 7.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.3e-05/0.1174, allocations: 0 / 0.492 GB, free: 7.57 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001033/0.1185, allocations: 0.5994 MB / 0.4926 GB, free: 6.926 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.1185, allocations: 15.89 kB / 0.4926 GB, free: 6.91 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.729e-05/0.1186, allocations: 66.61 kB / 0.4926 GB, free: 6.836 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.282e-05/0.1187, allocations: 32.75 kB / 0.4927 GB, free: 6.805 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004121/0.1191, allocations: 263.8 kB / 0.4929 GB, free: 6.508 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.457e-05/0.1191, allocations: 16.94 kB / 0.4929 GB, free: 6.488 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.502e-05/0.1192, allocations: 40.31 kB / 0.493 GB, free: 6.449 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005205/0.1197, allocations: 278.1 kB / 0.4932 GB, free: 6.152 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.173e-05/0.1198, allocations: 4 kB / 0.4933 GB, free: 6.148 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.366e-05/0.1198, allocations: 8 kB / 0.4933 GB, free: 6.141 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.131e-05/0.1198, allocations: 8 kB / 0.4933 GB, free: 6.133 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004495/0.1203, allocations: 187.8 kB / 0.4934 GB, free: 5.949 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001766/0.122, allocations: 1.306 MB / 0.4947 GB, free: 4.535 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004446/0.1225, allocations: 246.5 kB / 0.495 GB, free: 4.258 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002235/0.1227, allocations: 99.33 kB / 0.4951 GB, free: 4.148 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.581e-05/0.1228, allocations: 16.12 kB / 0.4951 GB, free: 4.133 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.763e-05/0.1228, allocations: 38.56 kB / 0.4951 GB, free: 4.086 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 1.633e-06/0.1228, allocations: 0 / 0.4951 GB, free: 4.086 MB / 382.1 MB Notification: Performance of matching and sorting (n=32): time 0.002737/0.1256, allocations: 1.566 MB / 0.4966 GB, free: 2.312 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.219e-05/0.1257, allocations: 140.4 kB / 0.4968 GB, free: 2.145 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002363/0.1259, allocations: 228.9 kB / 0.497 GB, free: 1.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.863e-05/0.1259, allocations: 29.7 kB / 0.497 GB, free: 1.875 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/0.1261, allocations: 184.5 kB / 0.4972 GB, free: 1.691 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001006/0.1262, allocations: 115 kB / 0.4973 GB, free: 1.578 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001029/0.1263, allocations: 71.34 kB / 0.4974 GB, free: 1.504 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.1265, allocations: 342.8 kB / 0.4977 GB, free: 1.16 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002687/0.1267, allocations: 100.9 kB / 0.4978 GB, free: 1.059 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003561/0.1271, allocations: 237.5 kB / 0.498 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006554/0.1278, allocations: 373 kB / 0.4984 GB, free: 352 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1278, allocations: 4 kB / 0.4984 GB, free: 348 kB / 382.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008116/0.1286, allocations: 396.9 kB / 0.4988 GB, free: 15.95 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.1286, allocations: 4 kB / 0.4988 GB, free: 15.94 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.435e-06/0.1286, allocations: 8 kB / 0.4988 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.725e-05/0.1287, allocations: 4 kB / 0.4988 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003644/0.129, allocations: 107.8 kB / 0.4989 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.776e-05/0.129, allocations: 8 kB / 0.4989 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002058/0.1293, allocations: 28.19 kB / 0.4989 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.551e-05/0.1293, allocations: 24 kB / 0.4989 GB, free: 15.77 MB / 398.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001437/0.1295, allocations: 153.6 kB / 0.4991 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001011/0.1296, allocations: 31.84 kB / 0.4991 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.035e-05/0.1296, allocations: 29.72 kB / 0.4991 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-05/0.1297, allocations: 4 kB / 0.4991 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/0.1297, allocations: 4 kB / 0.4991 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.1297, allocations: 4.219 kB / 0.4991 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001513/0.1312, allocations: 0.9816 MB / 0.5001 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/0.1312, allocations: 8.062 kB / 0.5001 GB, free: 14.47 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000362/0.1316, allocations: 83.86 kB / 0.5002 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.474e-06/0.1316, allocations: 4 kB / 0.5002 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.403e-05/0.1316, allocations: 15.88 kB / 0.5002 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.1316, allocations: 0 / 0.5002 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.552e-06/0.1317, allocations: 4 kB / 0.5002 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001043/0.1327, allocations: 0.7255 MB / 0.5009 GB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.627e-05/0.1328, allocations: 109 kB / 0.501 GB, free: 13.49 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.397e-05/0.1328, allocations: 19.92 kB / 0.501 GB, free: 13.47 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002875/0.1331, allocations: 19.98 kB / 0.5011 GB, free: 13.45 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.484e-05/0.1332, allocations: 19.97 kB / 0.5011 GB, free: 13.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.444e-05/0.1332, allocations: 8 kB / 0.5011 GB, free: 13.43 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001467/0.1334, allocations: 160.5 kB / 0.5012 GB, free: 13.27 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1334, allocations: 0 / 0.5012 GB, free: 13.27 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004702/0.1339, allocations: 68 kB / 0.5013 GB, free: 13.2 MB / 398.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001365/0.1352, allocations: 1.278 MB / 0.5026 GB, free: 11.89 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006434/0.1359, allocations: 275.6 kB / 0.5028 GB, free: 11.62 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.1359, allocations: 4 kB / 0.5028 GB, free: 11.62 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000292/0.1362, allocations: 124.8 kB / 0.5029 GB, free: 11.5 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000631/0.1369, allocations: 45.34 kB / 0.503 GB, free: 11.45 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004683/0.1416, allocations: 3.508 MB / 0.5064 GB, free: 7.723 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004224/0.142, allocations: 0.772 MB / 0.5072 GB, free: 6.926 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001373/0.1421, allocations: 34.95 kB / 0.5072 GB, free: 6.891 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001598/0.1423, allocations: 91.41 kB / 0.5073 GB, free: 6.801 MB / 398.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1423, allocations: 0 / 0.5073 GB, free: 6.801 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03102/0.1733, allocations: 5.319 MB / 0.5125 GB, free: 1.477 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.804/8.977, allocations: 12 kB / 0.5125 GB, free: 1.465 MB / 398.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_TestSpeed_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_TestSpeed.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches