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.001257/0.001263, allocations: 113.4 kB / 16.41 MB, free: 6.496 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.001216/0.001217, 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.432/1.432, 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.2329/0.2329, allocations: 43.52 MB / 314.1 MB, free: 476 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.002299/0.0023, allocations: 63.91 kB / 441.3 MB, free: 6.219 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1165, allocations: 57.79 MB / 499.1 MB, free: 12.35 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003695/0.1203, allocations: 1.896 MB / 0.4892 GB, free: 10.44 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001089/0.1214, allocations: 0.5307 MB / 0.4898 GB, free: 9.902 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001392/0.1216, allocations: 8 kB / 0.4898 GB, free: 9.895 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001408/0.1218, allocations: 27.73 kB / 0.4898 GB, free: 9.867 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000126/0.1219, allocations: 39.62 kB / 0.4898 GB, free: 9.828 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001959/0.1221, allocations: 35.95 kB / 0.4899 GB, free: 9.793 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002294/0.1224, allocations: 151.3 kB / 0.49 GB, free: 9.645 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001885/0.1226, allocations: 65.61 kB / 0.4901 GB, free: 9.578 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001558/0.1227, allocations: 59.8 kB / 0.4901 GB, free: 9.52 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001341/0.1229, allocations: 63.69 kB / 0.4902 GB, free: 9.457 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.146e-05/0.1229, allocations: 12 kB / 0.4902 GB, free: 9.445 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.942e-05/0.1229, allocations: 12 kB / 0.4902 GB, free: 9.434 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.568e-05/0.123, allocations: 23.92 kB / 0.4902 GB, free: 9.41 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.938e-05/0.1231, allocations: 71.61 kB / 0.4903 GB, free: 9.34 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002459/0.1233, allocations: 155.3 kB / 0.4904 GB, free: 9.188 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1233, allocations: 4 kB / 0.4905 GB, free: 9.184 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.406e-06/0.1233, allocations: 0 / 0.4905 GB, free: 9.184 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.755e-06/0.1234, allocations: 3.938 kB / 0.4905 GB, free: 9.18 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.0006605/0.124, allocations: 426.9 kB / 0.4909 GB, free: 8.715 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.1241, allocations: 15.89 kB / 0.4909 GB, free: 8.699 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.126e-05/0.1242, allocations: 54.67 kB / 0.4909 GB, free: 8.637 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.317e-05/0.1242, allocations: 16.84 kB / 0.4909 GB, free: 8.621 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002975/0.1245, allocations: 200.2 kB / 0.4911 GB, free: 8.387 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.914e-05/0.1245, allocations: 12.38 kB / 0.4912 GB, free: 8.375 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.796e-05/0.1246, allocations: 24.27 kB / 0.4912 GB, free: 8.352 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002873/0.1249, allocations: 133.5 kB / 0.4913 GB, free: 8.215 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.508e-05/0.1249, allocations: 0 / 0.4913 GB, free: 8.215 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.609e-05/0.1249, allocations: 4 kB / 0.4913 GB, free: 8.211 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.124e-06/0.125, allocations: 4 kB / 0.4913 GB, free: 8.207 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001973/0.1252, allocations: 75.95 kB / 0.4914 GB, free: 8.133 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007527/0.1259, allocations: 476.3 kB / 0.4918 GB, free: 7.617 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000245/0.1262, allocations: 118.4 kB / 0.4919 GB, free: 7.492 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001238/0.1263, allocations: 60.83 kB / 0.492 GB, free: 7.43 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.975e-05/0.1263, allocations: 0 / 0.492 GB, free: 7.43 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.359e-05/0.1264, allocations: 34.56 kB / 0.492 GB, free: 7.387 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 1.363e-06/0.1264, allocations: 4 kB / 0.492 GB, free: 7.383 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001595/0.128, allocations: 0.8097 MB / 0.4928 GB, free: 6.48 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.488e-05/0.128, allocations: 59.41 kB / 0.4929 GB, free: 6.41 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001458/0.1282, allocations: 134.2 kB / 0.493 GB, free: 6.266 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.961e-05/0.1282, allocations: 25.7 kB / 0.493 GB, free: 6.234 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.893e-05/0.1283, allocations: 116.4 kB / 0.4932 GB, free: 6.117 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.435e-05/0.1284, allocations: 71.38 kB / 0.4932 GB, free: 6.047 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.749e-05/0.1285, allocations: 37.7 kB / 0.4933 GB, free: 6.004 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.1286, allocations: 322.8 kB / 0.4936 GB, free: 5.68 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001077/0.1287, allocations: 39.98 kB / 0.4936 GB, free: 5.641 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001304/0.1289, allocations: 87.28 kB / 0.4937 GB, free: 5.543 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002348/0.1291, allocations: 135.3 kB / 0.4938 GB, free: 5.398 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.1291, allocations: 0 / 0.4938 GB, free: 5.398 MB / 382.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004095/0.1295, allocations: 202.3 kB / 0.494 GB, free: 5.191 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.783e-05/0.1296, allocations: 7.938 kB / 0.494 GB, free: 5.184 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.824e-06/0.1296, allocations: 4 kB / 0.494 GB, free: 5.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001864/0.1298, allocations: 40.83 kB / 0.4941 GB, free: 5.137 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001808/0.13, allocations: 39.91 kB / 0.4941 GB, free: 5.098 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001721/0.1317, allocations: 1.748 MB / 0.4958 GB, free: 3.207 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.093e-05/0.1318, allocations: 0 / 0.4958 GB, free: 3.207 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.575e-05/0.1318, allocations: 16.06 kB / 0.4958 GB, free: 3.191 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.0001355/0.132, allocations: 137.7 kB / 0.496 GB, free: 3.047 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.894e-05/0.132, allocations: 7.953 kB / 0.496 GB, free: 3.039 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.389e-05/0.1321, allocations: 21.17 kB / 0.496 GB, free: 3.02 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.1321, allocations: 3.938 kB / 0.496 GB, free: 3.016 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/0.1321, allocations: 0 / 0.496 GB, free: 3.016 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.1321, allocations: 7.938 kB / 0.496 GB, free: 3.008 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009927/0.1331, allocations: 0.5531 MB / 0.4965 GB, free: 2.395 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.1331, allocations: 0 / 0.4965 GB, free: 2.395 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001857/0.1333, allocations: 35.98 kB / 0.4966 GB, free: 2.359 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001229/0.1334, allocations: 32.83 kB / 0.4966 GB, free: 2.324 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.53e-05/0.1335, allocations: 4 kB / 0.4966 GB, free: 2.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001284/0.1348, allocations: 1.481 MB / 0.498 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.1348, allocations: 4.062 kB / 0.498 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005289/0.1353, allocations: 348.4 kB / 0.4984 GB, free: 340 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.123e-05/0.1354, allocations: 85.23 kB / 0.4985 GB, free: 236 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.369e-05/0.1354, allocations: 11.98 kB / 0.4985 GB, free: 224 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.748e-05/0.1355, allocations: 4.062 kB / 0.4985 GB, free: 220 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.995e-05/0.1356, allocations: 27.84 kB / 0.4985 GB, free: 192 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.132e-05/0.1356, allocations: 4 kB / 0.4985 GB, free: 188 kB / 382.1 MB Notification: Performance of sorting global known variables: time 8.918e-05/0.1357, allocations: 111.2 kB / 0.4986 GB, free: 76 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1357, allocations: 0 / 0.4986 GB, free: 76 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.000347/0.1361, allocations: 40 kB / 0.4987 GB, free: 36 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.0009467/0.137, allocations: 0.8663 MB / 0.4995 GB, free: 15.14 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005696/0.1376, allocations: 266.1 kB / 0.4998 GB, free: 14.87 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.1376, allocations: 4.125 kB / 0.4998 GB, free: 14.86 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002941/0.1379, allocations: 194.6 kB / 0.4999 GB, free: 14.66 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003467/0.1383, allocations: 27.91 kB / 0.5 GB, free: 14.63 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002731/0.141, allocations: 2.06 MB / 0.502 GB, free: 12.47 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003802/0.1414, allocations: 0.7204 MB / 0.5027 GB, free: 11.72 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.989e-05/0.1415, allocations: 9.422 kB / 0.5027 GB, free: 11.71 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.761e-05/0.1416, allocations: 43.42 kB / 0.5027 GB, free: 11.67 MB / 398.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1416, allocations: 4 kB / 0.5027 GB, free: 11.66 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0313/0.1729, allocations: 3.416 MB / 0.5061 GB, free: 8.238 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.66/10.83, allocations: 336 / 0.5061 GB, free: 8.238 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