Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.GenerationOfFMUs,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_GenerationOfFMUs",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.0008204/0.0008204, allocations: 95.16 kB / 17.35 MB, free: 6.371 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.000874/0.000874, allocations: 179.3 kB / 18.26 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.216/1.216, allocations: 223.3 MB / 242.3 MB, free: 228 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1659/0.1659, allocations: 44.24 MB / 337.7 MB, free: 2.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002971/0.0002971, allocations: 4 kB / 410.4 MB, free: 27.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09523/0.09554, allocations: 61.92 MB / 472.3 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.005298/0.1009, allocations: 5.272 MB / 477.6 MB, free: 7.953 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003433/0.1043, allocations: 2.22 MB / 479.8 MB, free: 5.727 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008121/0.1052, allocations: 39.75 kB / 479.9 MB, free: 5.688 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004964/0.1057, allocations: 178.6 kB / 480 MB, free: 5.512 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000582/0.1063, allocations: 146.8 kB / 480.2 MB, free: 5.367 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009111/0.1072, allocations: 395.3 kB / 480.6 MB, free: 4.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001005/0.1082, allocations: 1.044 MB / 481.6 MB, free: 3.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006578/0.1089, allocations: 0.5478 MB / 482.2 MB, free: 3.363 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002839/0.1092, allocations: 258.7 kB / 482.4 MB, free: 3.109 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002734/0.1095, allocations: 302.1 kB / 482.7 MB, free: 2.812 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.654e-05/0.1095, allocations: 32 kB / 482.7 MB, free: 2.781 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001784/0.1097, allocations: 95.91 kB / 482.8 MB, free: 2.688 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001218/0.1098, allocations: 135.3 kB / 483 MB, free: 2.555 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002794/0.1101, allocations: 415.3 kB / 483.4 MB, free: 2.141 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008031/0.1109, allocations: 1.125 MB / 484.5 MB, free: 1.012 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1109, allocations: 0 / 484.5 MB, free: 1.012 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.111, allocations: 4 kB / 484.5 MB, free: 1.008 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.818e-06/0.111, allocations: 0 / 484.5 MB, free: 1.008 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.00117/0.1121, allocations: 0.963 MB / 485.5 MB, free: 15.99 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.1122, allocations: 16.03 kB / 485.5 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001307/0.1123, allocations: 139.8 kB / 485.6 MB, free: 15.83 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001158/0.1124, allocations: 99.72 kB / 485.7 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006302/0.1131, allocations: 0.563 MB / 486.3 MB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.331e-05/0.1131, allocations: 66 kB / 486.3 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000109/0.1133, allocations: 95.91 kB / 486.4 MB, free: 14.97 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001302/0.1146, allocations: 0.8892 MB / 487.3 MB, free: 14.02 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.405e-05/0.1146, allocations: 19.84 kB / 487.4 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.611e-05/0.1147, allocations: 36 kB / 487.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.788e-05/0.1147, allocations: 24 kB / 487.4 MB, free: 13.94 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009079/0.1156, allocations: 0.5268 MB / 487.9 MB, free: 13.42 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003031/0.1187, allocations: 3.65 MB / 491.6 MB, free: 9.609 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004898/0.1192, allocations: 222.6 kB / 491.8 MB, free: 9.379 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00017/0.1193, allocations: 104.8 kB / 491.9 MB, free: 9.273 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002026/0.1196, allocations: 259.2 kB / 492.2 MB, free: 8.965 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.943e-05/0.1196, allocations: 34.56 kB / 492.2 MB, free: 8.922 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 2.474e-06/0.1196, allocations: 3.984 kB / 492.2 MB, free: 8.918 MB / 366.1 MB Notification: Performance of matching and sorting (n=35): time 0.00206/0.1217, allocations: 1.299 MB / 493.5 MB, free: 7.52 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.075e-05/0.1217, allocations: 55.34 kB / 493.6 MB, free: 7.453 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003643/0.1221, allocations: 405.8 kB / 493.9 MB, free: 7.051 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.177e-05/0.1221, allocations: 33.7 kB / 494 MB, free: 7.012 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002358/0.1223, allocations: 474.1 kB / 494.4 MB, free: 6.539 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.506e-05/0.1224, allocations: 134 kB / 494.6 MB, free: 6.406 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.555e-05/0.1225, allocations: 49.7 kB / 494.6 MB, free: 6.352 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.1226, allocations: 358.8 kB / 495 MB, free: 5.992 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002089/0.1228, allocations: 113.1 kB / 495.1 MB, free: 5.879 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002891/0.1231, allocations: 310.2 kB / 495.4 MB, free: 5.492 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005193/0.1236, allocations: 468.7 kB / 495.8 MB, free: 4.949 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.1237, allocations: 0 / 495.8 MB, free: 4.949 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007077/0.1244, allocations: 0.5206 MB / 496.4 MB, free: 4.418 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.1244, allocations: 4 kB / 496.4 MB, free: 4.414 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/0.1244, allocations: 8 kB / 496.4 MB, free: 4.406 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001551/0.1246, allocations: 44.83 kB / 496.4 MB, free: 4.359 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000343/0.1249, allocations: 127.8 kB / 496.5 MB, free: 4.234 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003109/0.1252, allocations: 0.5567 MB / 497.1 MB, free: 3.652 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001856/0.1254, allocations: 19.98 kB / 497.1 MB, free: 3.633 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.48e-05/0.1255, allocations: 24 kB / 497.1 MB, free: 3.609 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (68): * Single equations (assignments): 67 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002497/0.1257, allocations: 233.6 kB / 497.4 MB, free: 3.371 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.313e-05/0.1258, allocations: 51.38 kB / 497.4 MB, free: 3.32 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005561/0.1264, allocations: 335.3 kB / 497.8 MB, free: 2.98 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.671e-06/0.1264, allocations: 4 kB / 497.8 MB, free: 2.977 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.1264, allocations: 0 / 497.8 MB, free: 2.977 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.1264, allocations: 3.984 kB / 497.8 MB, free: 2.973 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001248/0.1277, allocations: 1.061 MB / 498.8 MB, free: 1.836 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.1277, allocations: 0 / 498.8 MB, free: 1.836 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003278/0.128, allocations: 80.05 kB / 498.9 MB, free: 1.758 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001061/0.1281, allocations: 40.78 kB / 498.9 MB, free: 1.715 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.593e-05/0.1282, allocations: 8 kB / 498.9 MB, free: 1.707 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002604/0.1284, allocations: 0.5523 MB / 499.5 MB, free: 1.129 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1284, allocations: 0 / 499.5 MB, free: 1.129 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006674/0.1291, allocations: 0.5744 MB / 0.4884 GB, free: 0.5156 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.033e-05/0.1292, allocations: 120.5 kB / 0.4885 GB, free: 388 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.213e-05/0.1292, allocations: 8 kB / 0.4885 GB, free: 380 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001484/0.1294, allocations: 15.98 kB / 0.4885 GB, free: 364 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.139e-05/0.1295, allocations: 31.94 kB / 0.4885 GB, free: 332 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.901e-05/0.1295, allocations: 12.09 kB / 0.4885 GB, free: 320 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002293/0.1297, allocations: 271.1 kB / 0.4888 GB, free: 56 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1297, allocations: 0 / 0.4888 GB, free: 56 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004537/0.1302, allocations: 124.1 kB / 0.4889 GB, free: 15.93 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.y,inertia2b.w,torqueToAngle2b.y,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.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 (33): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009358/0.1311, allocations: 1.121 MB / 0.49 GB, free: 14.77 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005249/0.1317, allocations: 328.5 kB / 0.4903 GB, free: 14.45 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1317, allocations: 0 / 0.4903 GB, free: 14.45 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002365/0.1319, allocations: 145 kB / 0.4905 GB, free: 14.31 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005383/0.1325, allocations: 69.94 kB / 0.4905 GB, free: 14.24 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005412/0.1379, allocations: 5.419 MB / 0.4958 GB, free: 8.535 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00044/0.1383, allocations: 0.9561 MB / 0.4967 GB, free: 7.555 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001642/0.1385, allocations: 56.92 kB / 0.4968 GB, free: 7.496 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002941/0.1388, allocations: 295.3 kB / 0.4971 GB, free: 7.207 MB / 382.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1388, allocations: 0 / 0.4971 GB, free: 7.207 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.259/1.398, allocations: 8.676 MB / 0.5056 GB, free: 47.68 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001468/1.398, allocations: 221.8 kB / 0.5058 GB, free: 47.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.22/3.619, allocations: 2.094 kB / 0.5058 GB, free: 47.43 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches