Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009155/0.0009155, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.000996/0.000996, allocations: 170.3 kB / 23.95 MB, free: 0.6055 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9272/0.9272, allocations: 177.1 MB / 204.3 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2348/0.2348, allocations: 32.79 MB / 293.5 MB, free: 1.238 MB / 266.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.944e-06/1.944e-06, allocations: 3.938 kB / 439.6 MB, free: 4.285 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.22e-05/2.415e-05, allocations: 8.109 kB / 439.6 MB, free: 4.277 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002277/0.002301, allocations: 1.872 MB / 441.4 MB, free: 2.391 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007434/0.003045, allocations: 0.5298 MB / 442 MB, free: 1.855 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.251e-05/0.003127, allocations: 3.938 kB / 442 MB, free: 1.852 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001135/0.003241, allocations: 23.78 kB / 442 MB, free: 1.828 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 7.362e-05/0.003314, allocations: 47.58 kB / 442 MB, free: 1.781 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002221/0.003537, allocations: 51.81 kB / 442.1 MB, free: 1.73 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001528/0.003689, allocations: 155.2 kB / 442.2 MB, free: 1.578 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001361/0.003825, allocations: 41.84 kB / 442.3 MB, free: 1.535 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001695/0.003995, allocations: 91.78 kB / 442.4 MB, free: 1.445 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.899e-05/0.004074, allocations: 47.88 kB / 442.4 MB, free: 1.398 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.128e-05/0.004095, allocations: 12 kB / 442.4 MB, free: 1.387 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.374e-05/0.004139, allocations: 12 kB / 442.4 MB, free: 1.375 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.845e-05/0.004157, allocations: 23.92 kB / 442.5 MB, free: 1.352 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 4.12e-05/0.004199, allocations: 59.83 kB / 442.5 MB, free: 1.293 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001834/0.004382, allocations: 159.5 kB / 442.7 MB, free: 1.137 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.004385, allocations: 0 / 442.7 MB, free: 1.137 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.004386, allocations: 0 / 442.7 MB, free: 1.137 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.004391, allocations: 0 / 442.7 MB, free: 1.137 MB / 410.7 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.000435/0.004826, allocations: 369.6 kB / 443 MB, free: 0.7461 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.004863, allocations: 8.031 kB / 443 MB, free: 0.7383 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.478e-05/0.004897, allocations: 46.73 kB / 443.1 MB, free: 0.6836 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001003/0.004998, allocations: 28.83 kB / 443.1 MB, free: 0.6562 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002061/0.005204, allocations: 148.3 kB / 443.3 MB, free: 500 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.152e-05/0.005215, allocations: 8.375 kB / 443.3 MB, free: 492 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.671e-05/0.005242, allocations: 16.33 kB / 443.3 MB, free: 476 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001892/0.005431, allocations: 126.7 kB / 443.4 MB, free: 344 kB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.437e-05/0.005446, allocations: 8.172 kB / 443.4 MB, free: 336 kB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.407e-05/0.00546, allocations: 7.938 kB / 443.4 MB, free: 328 kB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.005465, allocations: 4 kB / 443.4 MB, free: 324 kB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001217/0.005587, allocations: 83.88 kB / 443.5 MB, free: 240 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1821/0.1877, allocations: 406.3 kB / 443.9 MB, free: 46.3 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002061/0.1879, allocations: 110.9 kB / 444 MB, free: 46.28 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.365e-05/0.188, allocations: 50.09 kB / 444.1 MB, free: 46.27 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.165e-05/0.188, allocations: 2.656 kB / 444.1 MB, free: 46.27 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.007e-05/0.188, allocations: 36.88 kB / 444.1 MB, free: 46.23 MB / 410.7 MB Notification: Performance of pre-optimization done (n=13): time 3.176e-06/0.188, allocations: 2.594 kB / 444.1 MB, free: 46.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=19): time 0.001004/0.189, allocations: 0.655 MB / 444.8 MB, free: 45.98 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.831e-05/0.1891, allocations: 61.58 kB / 444.8 MB, free: 45.91 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.505e-05/0.1891, allocations: 146.5 kB / 445 MB, free: 45.82 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.616e-06/0.1891, allocations: 29.64 kB / 445 MB, free: 45.79 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.381e-05/0.1892, allocations: 117.1 kB / 445.1 MB, free: 45.69 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.507e-05/0.1892, allocations: 64.66 kB / 445.2 MB, free: 45.66 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.222e-05/0.1893, allocations: 37.47 kB / 445.2 MB, free: 45.64 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.795e-05/0.1893, allocations: 328.6 kB / 445.5 MB, free: 45.33 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.904e-05/0.1894, allocations: 37.3 kB / 445.6 MB, free: 45.32 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.503e-05/0.1894, allocations: 78.3 kB / 445.6 MB, free: 45.27 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001208/0.1895, allocations: 133.9 kB / 445.8 MB, free: 45.2 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.1895, allocations: 2.906 kB / 445.8 MB, free: 45.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002058/0.1898, allocations: 209.1 kB / 446 MB, free: 45.09 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/0.1898, allocations: 6.969 kB / 446 MB, free: 45.09 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.1898, allocations: 0 / 446 MB, free: 45.09 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001278/0.1899, allocations: 42.89 kB / 446 MB, free: 45.08 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001132/0.19, allocations: 33.39 kB / 446.1 MB, free: 45.08 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007759/0.1908, allocations: 1.632 MB / 447.7 MB, free: 43.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.481e-05/0.1908, allocations: 6.938 kB / 447.7 MB, free: 43.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.618e-06/0.1908, allocations: 13.09 kB / 447.7 MB, free: 43.55 MB / 410.7 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 6.648e-05/0.1909, allocations: 134.6 kB / 447.8 MB, free: 43.42 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.856e-05/0.1909, allocations: 13.12 kB / 447.9 MB, free: 43.41 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.152e-05/0.1909, allocations: 16 kB / 447.9 MB, free: 43.4 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.191, allocations: 2.719 kB / 447.9 MB, free: 43.4 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.191, allocations: 0 / 447.9 MB, free: 43.4 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.191, allocations: 4.781 kB / 447.9 MB, free: 43.4 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004103/0.1914, allocations: 0.5043 MB / 448.4 MB, free: 43.02 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.1914, allocations: 4.656 kB / 448.4 MB, free: 43.02 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.143e-05/0.1915, allocations: 43.72 kB / 448.4 MB, free: 43.02 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.659e-05/0.1915, allocations: 26.59 kB / 448.5 MB, free: 43 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.748e-06/0.1915, allocations: 6.172 kB / 448.5 MB, free: 43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004735/0.192, allocations: 1.375 MB / 449.8 MB, free: 41.68 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.192, allocations: 6.656 kB / 449.8 MB, free: 41.68 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002546/0.1923, allocations: 343 kB / 450.2 MB, free: 41.45 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.42e-05/0.1923, allocations: 10.81 kB / 450.2 MB, free: 41.45 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.809e-06/0.1923, allocations: 6.906 kB / 450.2 MB, free: 41.44 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.795e-05/0.1923, allocations: 2.906 kB / 450.2 MB, free: 41.44 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.747e-05/0.1924, allocations: 22.89 kB / 450.2 MB, free: 41.44 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.292e-06/0.1924, allocations: 3 kB / 450.2 MB, free: 41.44 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.881e-05/0.1924, allocations: 107 kB / 450.3 MB, free: 41.36 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1924, allocations: 0 / 450.3 MB, free: 41.36 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002162/0.1926, allocations: 46.34 kB / 450.4 MB, free: 41.35 MB / 410.7 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.0003675/0.193, allocations: 0.8792 MB / 451.3 MB, free: 40.59 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003176/0.1933, allocations: 254.8 kB / 451.5 MB, free: 40.44 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.664e-06/0.1933, allocations: 0 / 451.5 MB, free: 40.44 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000113/0.1934, allocations: 194 kB / 451.7 MB, free: 40.3 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002537/0.1937, allocations: 19.14 kB / 451.7 MB, free: 40.3 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001315/0.195, allocations: 2.015 MB / 453.7 MB, free: 38.72 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.727e-05/0.1951, allocations: 106.2 kB / 453.8 MB, free: 38.65 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.05e-05/0.1951, allocations: 14.19 kB / 453.8 MB, free: 38.64 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.763e-05/0.1952, allocations: 47.97 kB / 453.9 MB, free: 38.61 MB / 410.7 MB Notification: Performance of SimCode: time 8.91e-07/0.1952, allocations: 0 / 453.9 MB, free: 38.61 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02167/0.2168, allocations: 4.17 MB / 458.1 MB, free: 37.5 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.197/7.414, allocations: 2.844 kB / 458.1 MB, free: 37.5 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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.000219912 ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable J2.phi in file ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv. Warning: Get data of variable J2.phi from file ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv failed! Error: Could not read variable J2.w in file ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv. Warning: Get data of variable J2.w from file ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.544851245358586]