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.001145/0.001145, allocations: 105.4 kB / 16.27 MB, free: 5.977 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.001156/0.001156, allocations: 195.4 kB / 17.2 MB, free: 5.609 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.451/1.451, allocations: 205.1 MB / 223.1 MB, free: 12.28 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.2206/0.2206, allocations: 43.51 MB / 313.9 MB, free: 0.543 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.002301/0.002301, allocations: 65.23 kB / 382.8 MB, free: 56.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1123, allocations: 57.79 MB / 440.6 MB, free: 6.84 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003337/0.1157, allocations: 1.9 MB / 442.5 MB, free: 4.918 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001005/0.1167, allocations: 0.5385 MB / 443.1 MB, free: 4.371 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001777/0.1169, allocations: 4 kB / 443.1 MB, free: 4.367 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001626/0.1171, allocations: 15.8 kB / 443.1 MB, free: 4.352 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001531/0.1173, allocations: 39.62 kB / 443.1 MB, free: 4.312 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002447/0.1175, allocations: 39.91 kB / 443.1 MB, free: 4.273 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002317/0.1178, allocations: 163.2 kB / 443.3 MB, free: 4.113 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001983/0.118, allocations: 61.8 kB / 443.4 MB, free: 4.051 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001168/0.1181, allocations: 63.83 kB / 443.4 MB, free: 3.988 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001004/0.1182, allocations: 63.64 kB / 443.5 MB, free: 3.926 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.655e-05/0.1183, allocations: 16 kB / 443.5 MB, free: 3.91 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.489e-05/0.1183, allocations: 12 kB / 443.5 MB, free: 3.898 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.965e-05/0.1183, allocations: 27.92 kB / 443.5 MB, free: 3.871 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.695e-05/0.1184, allocations: 67.67 kB / 443.6 MB, free: 3.805 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001669/0.1186, allocations: 143.5 kB / 443.8 MB, free: 3.664 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1186, allocations: 0 / 443.8 MB, free: 3.664 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1186, allocations: 3.984 kB / 443.8 MB, free: 3.66 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.262e-06/0.1186, allocations: 0 / 443.8 MB, free: 3.66 MB / 318.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.0005215/0.1191, allocations: 431.1 kB / 444.2 MB, free: 3.191 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.1192, allocations: 15.89 kB / 444.2 MB, free: 3.176 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.247e-05/0.1192, allocations: 54.73 kB / 444.2 MB, free: 3.113 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.455e-05/0.1193, allocations: 12.75 kB / 444.3 MB, free: 3.102 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001623/0.1194, allocations: 204.1 kB / 444.5 MB, free: 2.863 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.111e-05/0.1194, allocations: 12.38 kB / 444.5 MB, free: 2.852 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.306e-05/0.1195, allocations: 12.38 kB / 444.5 MB, free: 2.84 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000234/0.1197, allocations: 129.5 kB / 444.6 MB, free: 2.707 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.591e-05/0.1198, allocations: 3.984 kB / 444.6 MB, free: 2.703 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.696e-05/0.1198, allocations: 8 kB / 444.6 MB, free: 2.695 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.1198, allocations: 8 kB / 444.6 MB, free: 2.688 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001607/0.12, allocations: 79.95 kB / 444.7 MB, free: 2.609 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000563/0.1205, allocations: 460.2 kB / 445.2 MB, free: 2.109 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001843/0.1207, allocations: 130.4 kB / 445.3 MB, free: 1.973 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.465e-05/0.1208, allocations: 52.84 kB / 445.3 MB, free: 1.918 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.705e-05/0.1208, allocations: 0 / 445.3 MB, free: 1.918 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.386e-05/0.1209, allocations: 34.56 kB / 445.4 MB, free: 1.875 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 9.72e-07/0.1209, allocations: 0 / 445.4 MB, free: 1.875 MB / 318.1 MB Notification: Performance of matching and sorting (n=19): time 0.001233/0.1221, allocations: 0.8147 MB / 446.2 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.298e-05/0.1221, allocations: 55.41 kB / 446.2 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.191e-05/0.1222, allocations: 141.2 kB / 446.4 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.264e-05/0.1223, allocations: 33.64 kB / 446.4 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.225e-05/0.1223, allocations: 112.3 kB / 446.5 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.222e-05/0.1224, allocations: 67 kB / 446.6 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.653e-05/0.1224, allocations: 37.7 kB / 446.6 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.213e-05/0.1225, allocations: 322.8 kB / 446.9 MB, free: 176 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.215e-05/0.1225, allocations: 43.97 kB / 447 MB, free: 132 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.505e-05/0.1227, allocations: 83.34 kB / 447.1 MB, free: 36 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000234/0.1229, allocations: 127.4 kB / 447.2 MB, free: 15.89 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.1229, allocations: 0 / 447.2 MB, free: 15.89 MB / 334.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000356/0.1233, allocations: 210.1 kB / 447.4 MB, free: 15.68 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.1233, allocations: 11.97 kB / 447.4 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.83e-06/0.1233, allocations: 0 / 447.4 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001652/0.1235, allocations: 48.89 kB / 447.4 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000163/0.1236, allocations: 35.92 kB / 447.5 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001454/0.1251, allocations: 1.728 MB / 449.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.659e-05/0.1252, allocations: 7.984 kB / 449.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.042e-05/0.1252, allocations: 12.06 kB / 449.2 MB, free: 13.7 MB / 334.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.0001148/0.1254, allocations: 126.9 kB / 449.4 MB, free: 13.56 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.63e-05/0.1254, allocations: 11.91 kB / 449.4 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.757e-05/0.1254, allocations: 13.19 kB / 449.4 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.1255, allocations: 11.88 kB / 449.4 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.1255, allocations: 0 / 449.4 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.1255, allocations: 3.984 kB / 449.4 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000724/0.1262, allocations: 0.5551 MB / 450 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/0.1262, allocations: 8.156 kB / 450 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001594/0.1264, allocations: 35.98 kB / 450 MB, free: 12.87 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001013/0.1265, allocations: 32.88 kB / 450 MB, free: 12.83 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.373e-05/0.1265, allocations: 7.984 kB / 450 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001192/0.1277, allocations: 1.477 MB / 451.5 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.1277, allocations: 7.969 kB / 451.5 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005188/0.1283, allocations: 344.9 kB / 451.9 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.742e-05/0.1283, allocations: 92.95 kB / 451.9 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.047e-05/0.1284, allocations: 7.984 kB / 452 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.068e-05/0.1284, allocations: 4 kB / 452 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.851e-05/0.1285, allocations: 15.92 kB / 452 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.08e-05/0.1285, allocations: 8 kB / 452 MB, free: 10.69 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.993e-05/0.1286, allocations: 114.6 kB / 452.1 MB, free: 10.58 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1286, allocations: 0 / 452.1 MB, free: 10.58 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003251/0.129, allocations: 40 kB / 452.1 MB, free: 10.54 MB / 334.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.0007985/0.1298, allocations: 0.874 MB / 453 MB, free: 9.633 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005131/0.1303, allocations: 269.3 kB / 453.3 MB, free: 9.359 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1303, allocations: 0 / 453.3 MB, free: 9.359 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003631/0.1307, allocations: 198.5 kB / 453.5 MB, free: 9.152 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004136/0.1311, allocations: 20.31 kB / 453.5 MB, free: 9.133 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002609/0.1337, allocations: 2.049 MB / 455.5 MB, free: 6.984 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002933/0.134, allocations: 0.7167 MB / 456.2 MB, free: 6.242 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.406e-05/0.1341, allocations: 13.36 kB / 456.3 MB, free: 6.227 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.932e-05/0.1342, allocations: 43.42 kB / 456.3 MB, free: 6.188 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1342, allocations: 4 kB / 456.3 MB, free: 6.184 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02506/0.1592, allocations: 3.34 MB / 459.6 MB, free: 2.859 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.538/9.698, allocations: 15.45 kB / 459.7 MB, free: 2.848 MB / 334.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