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.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.001714/0.001714, allocations: 114.4 kB / 17.12 MB, free: 5.891 MB / 14.72 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.001409/0.001409, allocations: 211.2 kB / 20.09 MB, free: 2.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.484/1.484, allocations: 207.6 MB / 230.5 MB, free: 4.023 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3343/0.3343, allocations: 44.22 MB / 326.6 MB, free: 6.82 MB / 254.1 MB " [Timeout remaining time 180] 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.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_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"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002237/0.002237, allocations: 67.89 kB / 462.2 MB, free: 0.9258 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2808/0.2831, allocations: 61 MB / 0.5109 GB, free: 13.13 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002953/0.286, allocations: 1.922 MB / 0.5128 GB, free: 11.62 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008852/0.2869, allocations: 0.5346 MB / 0.5133 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001166/0.287, allocations: 4.25 kB / 0.5133 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001336/0.2872, allocations: 23.64 kB / 0.5134 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.63e-05/0.2873, allocations: 43.44 kB / 0.5134 GB, free: 11.14 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001913/0.2874, allocations: 42.67 kB / 0.5134 GB, free: 11.1 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001657/0.2876, allocations: 156.5 kB / 0.5136 GB, free: 11 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001593/0.2878, allocations: 39.56 kB / 0.5136 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001183/0.2879, allocations: 61.8 kB / 0.5137 GB, free: 10.94 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001087/0.288, allocations: 63.36 kB / 0.5137 GB, free: 10.9 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.772e-05/0.288, allocations: 11.22 kB / 0.5137 GB, free: 10.9 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.734e-05/0.2881, allocations: 12.03 kB / 0.5138 GB, free: 10.9 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.958e-05/0.2881, allocations: 35.36 kB / 0.5138 GB, free: 10.87 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.47e-05/0.2881, allocations: 74.56 kB / 0.5139 GB, free: 10.82 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002169/0.2884, allocations: 150.4 kB / 0.514 GB, free: 10.71 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.2884, allocations: 0 / 0.514 GB, free: 10.71 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2884, allocations: 0 / 0.514 GB, free: 10.71 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.2884, allocations: 0 / 0.514 GB, free: 10.71 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.0005489/0.2889, allocations: 428.8 kB / 0.5144 GB, free: 10.29 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/0.289, allocations: 13.39 kB / 0.5144 GB, free: 10.29 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.887e-05/0.289, allocations: 47.64 kB / 0.5145 GB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.727e-05/0.2891, allocations: 19.69 kB / 0.5145 GB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002645/0.2893, allocations: 210.3 kB / 0.5147 GB, free: 9.996 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.647e-05/0.2893, allocations: 14.81 kB / 0.5147 GB, free: 9.988 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.455e-05/0.2894, allocations: 17.17 kB / 0.5147 GB, free: 9.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002659/0.2896, allocations: 130.1 kB / 0.5149 GB, free: 9.891 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.2897, allocations: 1.438 kB / 0.5149 GB, free: 9.891 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.684e-05/0.2897, allocations: 9.531 kB / 0.5149 GB, free: 9.883 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.704e-06/0.2897, allocations: 3.094 kB / 0.5149 GB, free: 9.883 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001849/0.2899, allocations: 79.67 kB / 0.5149 GB, free: 9.848 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006778/0.2905, allocations: 460.8 kB / 0.5154 GB, free: 9.43 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002067/0.2907, allocations: 116.1 kB / 0.5155 GB, free: 9.359 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001004/0.2908, allocations: 50.95 kB / 0.5155 GB, free: 9.332 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.957e-05/0.2909, allocations: 1.375 kB / 0.5155 GB, free: 9.332 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.947e-05/0.2909, allocations: 39.94 kB / 0.5156 GB, free: 9.285 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 2.265e-06/0.2909, allocations: 0 / 0.5156 GB, free: 9.285 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001427/0.2923, allocations: 0.8129 MB / 0.5164 GB, free: 8.613 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.676e-05/0.2923, allocations: 56.72 kB / 0.5164 GB, free: 8.547 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001169/0.2925, allocations: 139.6 kB / 0.5166 GB, free: 8.422 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.471e-05/0.2925, allocations: 26.89 kB / 0.5166 GB, free: 8.391 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.73e-05/0.2925, allocations: 114.4 kB / 0.5167 GB, free: 8.281 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.786e-05/0.2926, allocations: 70.84 kB / 0.5168 GB, free: 8.219 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.046e-05/0.2926, allocations: 37.86 kB / 0.5168 GB, free: 8.188 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.176e-05/0.2927, allocations: 324.8 kB / 0.5171 GB, free: 7.863 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.525e-05/0.2928, allocations: 40.2 kB / 0.5171 GB, free: 7.848 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001146/0.2929, allocations: 79.88 kB / 0.5172 GB, free: 7.785 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002012/0.2931, allocations: 140.8 kB / 0.5174 GB, free: 7.691 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.2931, allocations: 5.25 kB / 0.5174 GB, free: 7.688 MB / 382.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003648/0.2934, allocations: 199.9 kB / 0.5176 GB, free: 7.57 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.303e-05/0.2935, allocations: 9.562 kB / 0.5176 GB, free: 7.566 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.2935, allocations: 1.406 kB / 0.5176 GB, free: 7.566 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001808/0.2937, allocations: 42.39 kB / 0.5176 GB, free: 7.543 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001822/0.2938, allocations: 34.3 kB / 0.5176 GB, free: 7.535 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001221/0.2951, allocations: 1.745 MB / 0.5193 GB, free: 5.812 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000102/0.2952, allocations: 10.75 kB / 0.5193 GB, free: 5.805 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.497e-05/0.2952, allocations: 5.5 kB / 0.5194 GB, free: 5.805 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.0001066/0.2953, allocations: 124.7 kB / 0.5195 GB, free: 5.68 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.16e-05/0.2953, allocations: 9.453 kB / 0.5195 GB, free: 5.676 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.204e-05/0.2954, allocations: 27.86 kB / 0.5195 GB, free: 5.652 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.2954, allocations: 6.688 kB / 0.5195 GB, free: 5.648 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.2954, allocations: 1.438 kB / 0.5195 GB, free: 5.648 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.2954, allocations: 4 kB / 0.5195 GB, free: 5.645 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006748/0.2961, allocations: 0.5491 MB / 0.5201 GB, free: 5.066 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.538e-06/0.2961, allocations: 0 / 0.5201 GB, free: 5.066 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001596/0.2962, allocations: 35.92 kB / 0.5201 GB, free: 5.031 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001086/0.2963, allocations: 40.86 kB / 0.5201 GB, free: 4.988 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.191e-05/0.2963, allocations: 0 / 0.5201 GB, free: 4.988 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000792/0.2971, allocations: 1.485 MB / 0.5216 GB, free: 3.359 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.2971, allocations: 0 / 0.5216 GB, free: 3.359 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004221/0.2976, allocations: 354 kB / 0.5219 GB, free: 2.996 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.014e-05/0.2976, allocations: 85.22 kB / 0.522 GB, free: 2.895 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.779e-05/0.2976, allocations: 4 kB / 0.522 GB, free: 2.891 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.208e-05/0.2977, allocations: 8 kB / 0.522 GB, free: 2.883 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.37e-05/0.2978, allocations: 23.91 kB / 0.522 GB, free: 2.859 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.877e-06/0.2978, allocations: 4 kB / 0.522 GB, free: 2.855 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.85e-05/0.2978, allocations: 107.2 kB / 0.5221 GB, free: 2.75 MB / 382.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.2978, allocations: 0 / 0.5221 GB, free: 2.75 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003489/0.2982, allocations: 40 kB / 0.5222 GB, free: 2.711 MB / 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.0006349/0.2988, allocations: 0.8851 MB / 0.523 GB, free: 1.797 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005164/0.2993, allocations: 258.8 kB / 0.5233 GB, free: 1.531 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2993, allocations: 0 / 0.5233 GB, free: 1.531 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002116/0.2996, allocations: 186.6 kB / 0.5235 GB, free: 1.336 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003489/0.2999, allocations: 28.09 kB / 0.5235 GB, free: 1.309 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002355/0.3023, allocations: 2.061 MB / 0.5255 GB, free: 15.14 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003896/0.3026, allocations: 0.7204 MB / 0.5262 GB, free: 14.39 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.713e-05/0.3027, allocations: 13.44 kB / 0.5262 GB, free: 14.38 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.395e-05/0.3028, allocations: 39.42 kB / 0.5263 GB, free: 14.34 MB / 398.1 MB Notification: Performance of SimCode: time 1.032e-06/0.3028, allocations: 0 / 0.5263 GB, free: 14.34 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03494/0.3377, allocations: 3.451 MB / 0.5296 GB, free: 10.88 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.74/11.08, allocations: 4 kB / 0.5296 GB, free: 10.88 MB / 398.1 MB " [Timeout remaining time 649] (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.000219912 ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "Error: Could not read variable J2.phi in file ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv. Warning: Get data of variable J2.phi from file ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv failed! Error: Could not read variable J2.w in file ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv. Warning: Get data of variable J2.w from file ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.062173473008443]