Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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.SimpleDriveTrain,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",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.001298/0.001303, allocations: 107.5 kB / 16.41 MB, free: 6.492 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.001354/0.001354, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.434/1.434, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.2203/0.2203, allocations: 43.52 MB / 314.1 MB, free: 468 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.001823/0.001823, allocations: 67.91 kB / 441.3 MB, free: 6.199 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1095, allocations: 57.79 MB / 499.1 MB, free: 12.34 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003389/0.113, allocations: 1.896 MB / 0.4892 GB, free: 10.43 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001073/0.1141, allocations: 0.5386 MB / 0.4898 GB, free: 9.883 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001569/0.1143, allocations: 0 / 0.4898 GB, free: 9.883 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001667/0.1145, allocations: 27.72 kB / 0.4898 GB, free: 9.855 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001447/0.1147, allocations: 39.64 kB / 0.4898 GB, free: 9.816 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002241/0.1149, allocations: 39.94 kB / 0.4899 GB, free: 9.777 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002381/0.1152, allocations: 147.3 kB / 0.49 GB, free: 9.633 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001863/0.1154, allocations: 73.61 kB / 0.4901 GB, free: 9.559 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001459/0.1155, allocations: 51.8 kB / 0.4901 GB, free: 9.508 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001423/0.1157, allocations: 67.7 kB / 0.4902 GB, free: 9.441 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.91e-05/0.1157, allocations: 12 kB / 0.4902 GB, free: 9.43 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.253e-05/0.1157, allocations: 12 kB / 0.4902 GB, free: 9.418 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.241e-05/0.1158, allocations: 35.83 kB / 0.4902 GB, free: 9.383 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.697e-05/0.1159, allocations: 63.67 kB / 0.4903 GB, free: 9.32 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002358/0.1161, allocations: 155.4 kB / 0.4905 GB, free: 9.168 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.1161, allocations: 3.938 kB / 0.4905 GB, free: 9.164 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.562e-06/0.1161, allocations: 0 / 0.4905 GB, free: 9.164 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.099e-05/0.1162, allocations: 0 / 0.4905 GB, free: 9.164 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006208/0.1168, allocations: 430.9 kB / 0.4909 GB, free: 8.695 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.1168, allocations: 11.89 kB / 0.4909 GB, free: 8.684 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.819e-05/0.1169, allocations: 50.67 kB / 0.4909 GB, free: 8.625 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.312e-05/0.117, allocations: 16.84 kB / 0.4909 GB, free: 8.609 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002987/0.1173, allocations: 204.2 kB / 0.4911 GB, free: 8.371 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.938e-05/0.1173, allocations: 16.38 kB / 0.4912 GB, free: 8.355 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.734e-05/0.1173, allocations: 20.27 kB / 0.4912 GB, free: 8.336 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002893/0.1176, allocations: 125.6 kB / 0.4913 GB, free: 8.207 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.686e-05/0.1177, allocations: 4 kB / 0.4913 GB, free: 8.203 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.542e-05/0.1177, allocations: 4 kB / 0.4913 GB, free: 8.199 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.733e-06/0.1177, allocations: 4 kB / 0.4913 GB, free: 8.195 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001973/0.1179, allocations: 83.94 kB / 0.4914 GB, free: 8.113 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007306/0.1186, allocations: 464.3 kB / 0.4918 GB, free: 7.609 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000224/0.1189, allocations: 134.3 kB / 0.492 GB, free: 7.469 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001142/0.119, allocations: 56.84 kB / 0.492 GB, free: 7.41 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.005e-05/0.119, allocations: 0 / 0.492 GB, free: 7.41 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.815e-05/0.1191, allocations: 38.56 kB / 0.492 GB, free: 7.363 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 1.102e-06/0.1191, allocations: 0 / 0.492 GB, free: 7.363 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.00151/0.1206, allocations: 0.8064 MB / 0.4928 GB, free: 6.461 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.956e-05/0.1206, allocations: 63.39 kB / 0.4929 GB, free: 6.387 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001349/0.1208, allocations: 138.7 kB / 0.493 GB, free: 6.238 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.636e-05/0.1208, allocations: 25.7 kB / 0.4931 GB, free: 6.207 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.301e-05/0.1209, allocations: 116.4 kB / 0.4932 GB, free: 6.09 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.615e-05/0.1209, allocations: 63.39 kB / 0.4932 GB, free: 6.027 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.496e-05/0.121, allocations: 37.7 kB / 0.4933 GB, free: 5.984 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.1211, allocations: 322.8 kB / 0.4936 GB, free: 5.66 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001048/0.1212, allocations: 51.97 kB / 0.4936 GB, free: 5.609 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001251/0.1213, allocations: 75.34 kB / 0.4937 GB, free: 5.523 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002413/0.1216, allocations: 131.3 kB / 0.4938 GB, free: 5.383 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1216, allocations: 0 / 0.4938 GB, free: 5.383 MB / 382.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003978/0.122, allocations: 206.3 kB / 0.494 GB, free: 5.172 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.122, allocations: 7.938 kB / 0.494 GB, free: 5.164 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.1221, allocations: 0 / 0.494 GB, free: 5.164 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001728/0.1222, allocations: 40.84 kB / 0.4941 GB, free: 5.121 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001809/0.1224, allocations: 39.91 kB / 0.4941 GB, free: 5.082 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001463/0.1239, allocations: 1.74 MB / 0.4958 GB, free: 3.199 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.773e-05/0.124, allocations: 4.094 kB / 0.4958 GB, free: 3.195 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.969e-05/0.124, allocations: 15.98 kB / 0.4958 GB, free: 3.18 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001131/0.1242, allocations: 133.7 kB / 0.4959 GB, free: 3.039 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.987e-05/0.1242, allocations: 11.95 kB / 0.496 GB, free: 3.027 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.604e-05/0.1242, allocations: 21.22 kB / 0.496 GB, free: 3.008 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.1243, allocations: 11.88 kB / 0.496 GB, free: 2.996 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.1243, allocations: 0 / 0.496 GB, free: 2.996 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.66e-06/0.1243, allocations: 3.984 kB / 0.496 GB, free: 2.992 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007855/0.1251, allocations: 0.553 MB / 0.4965 GB, free: 2.379 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.1251, allocations: 0 / 0.4965 GB, free: 2.379 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001702/0.1253, allocations: 39.91 kB / 0.4966 GB, free: 2.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001173/0.1254, allocations: 32.84 kB / 0.4966 GB, free: 2.305 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.478e-05/0.1254, allocations: 0 / 0.4966 GB, free: 2.305 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001114/0.1265, allocations: 1.493 MB / 0.4981 GB, free: 0.668 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.1266, allocations: 0 / 0.4981 GB, free: 0.668 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004931/0.1271, allocations: 348.6 kB / 0.4984 GB, free: 316 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.698e-05/0.1271, allocations: 85.09 kB / 0.4985 GB, free: 212 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.048e-05/0.1271, allocations: 4 kB / 0.4985 GB, free: 208 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001003/0.1273, allocations: 12.11 kB / 0.4985 GB, free: 196 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.109e-05/0.1273, allocations: 23.86 kB / 0.4985 GB, free: 172 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.738e-06/0.1273, allocations: 4 kB / 0.4985 GB, free: 168 kB / 382.1 MB Notification: Performance of sorting global known variables: time 7.865e-05/0.1274, allocations: 111.2 kB / 0.4986 GB, free: 56 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1274, allocations: 0 / 0.4986 GB, free: 56 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.000353/0.1278, allocations: 40 kB / 0.4987 GB, free: 16 kB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (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 (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.0007447/0.1285, allocations: 0.8703 MB / 0.4995 GB, free: 15.11 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005099/0.129, allocations: 266.7 kB / 0.4998 GB, free: 14.84 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.1291, allocations: 4.125 kB / 0.4998 GB, free: 14.84 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002635/0.1293, allocations: 186.6 kB / 0.4999 GB, free: 14.64 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003566/0.1297, allocations: 20.39 kB / 0.5 GB, free: 14.62 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002508/0.1322, allocations: 2.069 MB / 0.502 GB, free: 12.45 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002799/0.1325, allocations: 0.7166 MB / 0.5027 GB, free: 11.71 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.068e-05/0.1326, allocations: 13.42 kB / 0.5027 GB, free: 11.69 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.891e-05/0.1327, allocations: 39.42 kB / 0.5027 GB, free: 11.65 MB / 398.1 MB Notification: Performance of SimCode: time 7.32e-07/0.1327, allocations: 4 kB / 0.5027 GB, free: 11.65 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02636/0.1591, allocations: 3.413 MB / 0.5061 GB, free: 8.223 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.36/10.52, allocations: 8.25 kB / 0.5061 GB, free: 8.215 MB / 398.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches