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.001354/0.001354, allocations: 105 kB / 16.4 MB, free: 6.512 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.001236/0.001236, allocations: 189.5 kB / 17.34 MB, free: 5.738 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.29/1.29, 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.2028/0.2028, allocations: 43.52 MB / 314.1 MB, free: 452 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.001558/0.001558, allocations: 61.47 kB / 441.3 MB, free: 6.168 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09594/0.09751, allocations: 57.79 MB / 499.1 MB, free: 12.31 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003717/0.1013, allocations: 1.911 MB / 0.4892 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001063/0.1024, allocations: 0.5386 MB / 0.4898 GB, free: 9.836 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001571/0.1026, allocations: 4 kB / 0.4898 GB, free: 9.832 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001552/0.1028, allocations: 19.73 kB / 0.4898 GB, free: 9.812 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001486/0.1029, allocations: 39.64 kB / 0.4898 GB, free: 9.773 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002376/0.1032, allocations: 43.94 kB / 0.4899 GB, free: 9.73 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002303/0.1034, allocations: 151.2 kB / 0.49 GB, free: 9.582 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001934/0.1036, allocations: 57.66 kB / 0.4901 GB, free: 9.523 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001694/0.1038, allocations: 59.77 kB / 0.4901 GB, free: 9.465 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001802/0.104, allocations: 67.7 kB / 0.4902 GB, free: 9.398 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.311e-05/0.104, allocations: 12 kB / 0.4902 GB, free: 9.387 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.791e-05/0.1041, allocations: 12 kB / 0.4902 GB, free: 9.375 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.057e-05/0.1041, allocations: 23.92 kB / 0.4902 GB, free: 9.352 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.487e-05/0.1042, allocations: 75.59 kB / 0.4903 GB, free: 9.277 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002633/0.1045, allocations: 147.4 kB / 0.4905 GB, free: 9.133 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.606e-06/0.1045, allocations: 4 kB / 0.4905 GB, free: 9.129 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1045, allocations: 3.938 kB / 0.4905 GB, free: 9.125 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.895e-06/0.1045, allocations: 0 / 0.4905 GB, free: 9.125 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.0007049/0.1053, allocations: 434.8 kB / 0.4909 GB, free: 8.652 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.395e-05/0.1053, allocations: 15.89 kB / 0.4909 GB, free: 8.637 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.706e-05/0.1054, allocations: 42.75 kB / 0.4909 GB, free: 8.586 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.908e-05/0.1054, allocations: 16.84 kB / 0.4909 GB, free: 8.57 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003106/0.1057, allocations: 208.2 kB / 0.4911 GB, free: 8.328 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.461e-05/0.1058, allocations: 8.375 kB / 0.4912 GB, free: 8.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.498e-05/0.1058, allocations: 16.33 kB / 0.4912 GB, free: 8.305 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002826/0.1061, allocations: 129.6 kB / 0.4913 GB, free: 8.172 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.646e-05/0.1061, allocations: 3.984 kB / 0.4913 GB, free: 8.168 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.846e-05/0.1062, allocations: 7.984 kB / 0.4913 GB, free: 8.16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.1062, allocations: 4 kB / 0.4913 GB, free: 8.156 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001893/0.1064, allocations: 79.95 kB / 0.4914 GB, free: 8.078 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007255/0.1071, allocations: 472.2 kB / 0.4918 GB, free: 7.566 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002229/0.1073, allocations: 122.5 kB / 0.492 GB, free: 7.438 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000123/0.1075, allocations: 52.84 kB / 0.492 GB, free: 7.383 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.138e-05/0.1075, allocations: 0 / 0.492 GB, free: 7.383 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.102e-05/0.1075, allocations: 42.56 kB / 0.492 GB, free: 7.332 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 3.035e-06/0.1075, allocations: 0 / 0.492 GB, free: 7.332 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001577/0.1091, allocations: 0.8064 MB / 0.4928 GB, free: 6.43 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.551e-05/0.1092, allocations: 59.41 kB / 0.4929 GB, free: 6.359 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001257/0.1093, allocations: 138.2 kB / 0.493 GB, free: 6.211 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.841e-05/0.1094, allocations: 25.7 kB / 0.493 GB, free: 6.18 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.553e-05/0.1095, allocations: 120.4 kB / 0.4932 GB, free: 6.059 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.883e-05/0.1095, allocations: 67.39 kB / 0.4932 GB, free: 5.992 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.516e-05/0.1096, allocations: 37.7 kB / 0.4933 GB, free: 5.949 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.1097, allocations: 318.8 kB / 0.4936 GB, free: 5.629 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.749e-05/0.1098, allocations: 47.97 kB / 0.4936 GB, free: 5.582 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001191/0.1099, allocations: 87.28 kB / 0.4937 GB, free: 5.484 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002213/0.1102, allocations: 123.4 kB / 0.4938 GB, free: 5.352 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1102, allocations: 0 / 0.4938 GB, free: 5.352 MB / 382.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004051/0.1106, allocations: 206.3 kB / 0.494 GB, free: 5.141 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.155e-05/0.1106, allocations: 7.938 kB / 0.494 GB, free: 5.133 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.1106, allocations: 8.062 kB / 0.494 GB, free: 5.125 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001975/0.1108, allocations: 44.77 kB / 0.4941 GB, free: 5.078 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001734/0.111, allocations: 35.98 kB / 0.4941 GB, free: 5.043 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001574/0.1126, allocations: 1.736 MB / 0.4958 GB, free: 3.164 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00011/0.1127, allocations: 12.05 kB / 0.4958 GB, free: 3.152 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.639e-05/0.1128, allocations: 12 kB / 0.4958 GB, free: 3.141 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.0001329/0.1129, allocations: 129.7 kB / 0.4959 GB, free: 3.004 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.206e-05/0.113, allocations: 11.95 kB / 0.496 GB, free: 2.992 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.127e-05/0.113, allocations: 21.19 kB / 0.496 GB, free: 2.973 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.079e-06/0.113, allocations: 3.938 kB / 0.496 GB, free: 2.969 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.113, allocations: 3.938 kB / 0.496 GB, free: 2.965 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.113, allocations: 3.984 kB / 0.496 GB, free: 2.961 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007912/0.1138, allocations: 0.5611 MB / 0.4965 GB, free: 2.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.1138, allocations: 4 kB / 0.4965 GB, free: 2.336 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001705/0.114, allocations: 31.98 kB / 0.4966 GB, free: 2.305 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001243/0.1142, allocations: 32.84 kB / 0.4966 GB, free: 2.27 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.414e-05/0.1142, allocations: 8.016 kB / 0.4966 GB, free: 2.262 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001076/0.1153, allocations: 1.481 MB / 0.4981 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.1153, allocations: 0 / 0.4981 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004665/0.1158, allocations: 348.2 kB / 0.4984 GB, free: 284 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.145e-05/0.1158, allocations: 85.09 kB / 0.4985 GB, free: 180 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.675e-05/0.1159, allocations: 11.98 kB / 0.4985 GB, free: 168 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.755e-05/0.116, allocations: 4.125 kB / 0.4985 GB, free: 164 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.271e-05/0.116, allocations: 23.86 kB / 0.4985 GB, free: 140 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.257e-06/0.116, allocations: 4 kB / 0.4985 GB, free: 136 kB / 382.1 MB Notification: Performance of sorting global known variables: time 6.987e-05/0.1161, allocations: 111.2 kB / 0.4986 GB, free: 24 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1161, allocations: 0 / 0.4986 GB, free: 24 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003573/0.1165, allocations: 44.08 kB / 0.4987 GB, free: 15.98 MB / 398.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.0007309/0.1172, allocations: 0.8696 MB / 0.4995 GB, free: 15.08 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005232/0.1178, allocations: 266.8 kB / 0.4998 GB, free: 14.8 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.1178, allocations: 0 / 0.4998 GB, free: 14.8 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000247/0.118, allocations: 194.5 kB / 0.4999 GB, free: 14.61 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003477/0.1184, allocations: 19.98 kB / 0.5 GB, free: 14.59 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002322/0.1207, allocations: 2.061 MB / 0.502 GB, free: 12.42 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002442/0.121, allocations: 0.7126 MB / 0.5027 GB, free: 11.68 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.788e-05/0.1211, allocations: 17.41 kB / 0.5027 GB, free: 11.66 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.757e-05/0.1211, allocations: 47.36 kB / 0.5027 GB, free: 11.62 MB / 398.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1211, allocations: 0 / 0.5027 GB, free: 11.62 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02345/0.1446, allocations: 3.419 MB / 0.5061 GB, free: 8.191 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.587/9.731, allocations: 8.203 kB / 0.5061 GB, free: 8.184 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