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.002399/0.002399, allocations: 72.56 kB / 19.92 MB, free: 4.621 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.0009247/0.0009247, allocations: 177.9 kB / 23.21 MB, free: 1.336 MB / 18.57 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 0.8717/0.8717, allocations: 158.6 MB / 185 MB, free: 3.023 MB / 170.7 MB " [Timeout remaining time 179] 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.1304/0.1304, allocations: 32.37 MB / 269.6 MB, free: 14.96 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.222e-06/1.222e-06, allocations: 0 / 406.8 MB, free: 13.53 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.566e-05/1.688e-05, allocations: 9.516 kB / 406.8 MB, free: 13.52 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002109/0.002126, allocations: 1.84 MB / 408.7 MB, free: 11.67 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007092/0.002835, allocations: 0.5188 MB / 409.2 MB, free: 11.14 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.168e-05/0.002916, allocations: 4 kB / 409.2 MB, free: 11.14 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001128/0.003029, allocations: 19.8 kB / 409.2 MB, free: 11.12 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 8.986e-05/0.003119, allocations: 51.56 kB / 409.3 MB, free: 11.07 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001836/0.003303, allocations: 35.94 kB / 409.3 MB, free: 11.04 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001464/0.003449, allocations: 147.3 kB / 409.5 MB, free: 10.89 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001518/0.003601, allocations: 49.75 kB / 409.5 MB, free: 10.84 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001375/0.003738, allocations: 87.8 kB / 409.6 MB, free: 10.75 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.508e-05/0.003823, allocations: 47.81 kB / 409.6 MB, free: 10.71 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.679e-05/0.00385, allocations: 12 kB / 409.6 MB, free: 10.7 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.694e-05/0.003867, allocations: 12 kB / 409.7 MB, free: 10.68 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.748e-05/0.003925, allocations: 31.91 kB / 409.7 MB, free: 10.65 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 4.361e-05/0.003968, allocations: 43.86 kB / 409.7 MB, free: 10.61 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001574/0.004126, allocations: 155.5 kB / 409.9 MB, free: 10.46 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.004128, allocations: 0 / 409.9 MB, free: 10.46 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.004129, allocations: 0 / 409.9 MB, free: 10.46 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.318e-06/0.004133, allocations: 0 / 409.9 MB, free: 10.46 MB / 346.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.0004443/0.004578, allocations: 357.7 kB / 410.2 MB, free: 10.08 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.004618, allocations: 12.03 kB / 410.2 MB, free: 10.07 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.58e-05/0.004654, allocations: 42.75 kB / 410.3 MB, free: 10.02 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.342e-05/0.004687, allocations: 28.83 kB / 410.3 MB, free: 9.988 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001771/0.004864, allocations: 153.5 kB / 410.5 MB, free: 9.812 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.209e-05/0.004877, allocations: 8.375 kB / 410.5 MB, free: 9.805 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.786e-05/0.004904, allocations: 24.34 kB / 410.5 MB, free: 9.781 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002555/0.00516, allocations: 122.2 kB / 410.6 MB, free: 9.656 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/0.005173, allocations: 4.141 kB / 410.6 MB, free: 9.652 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.005186, allocations: 7.938 kB / 410.6 MB, free: 9.645 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.005192, allocations: 7.938 kB / 410.6 MB, free: 9.637 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001197/0.005311, allocations: 83.92 kB / 410.7 MB, free: 9.555 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004926/0.005804, allocations: 407.5 kB / 411.1 MB, free: 9.113 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001579/0.005962, allocations: 110.5 kB / 411.2 MB, free: 8.996 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.619e-05/0.006028, allocations: 48.83 kB / 411.3 MB, free: 8.945 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.705e-05/0.006045, allocations: 7.938 kB / 411.3 MB, free: 8.938 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.182e-05/0.006067, allocations: 38.5 kB / 411.3 MB, free: 8.891 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 1.062e-06/0.006068, allocations: 0 / 411.3 MB, free: 8.891 MB / 346.7 MB Notification: Performance of matching and sorting (n=19): time 0.0009636/0.007031, allocations: 0.6591 MB / 412 MB, free: 8.176 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.91e-05/0.007061, allocations: 55.34 kB / 412 MB, free: 8.109 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.913e-05/0.00715, allocations: 142.2 kB / 412.2 MB, free: 7.957 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.15e-05/0.007161, allocations: 25.7 kB / 412.2 MB, free: 7.926 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001876/0.007349, allocations: 112.5 kB / 412.3 MB, free: 7.812 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.396e-05/0.007383, allocations: 67.39 kB / 412.4 MB, free: 7.746 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.185e-05/0.007425, allocations: 37.7 kB / 412.4 MB, free: 7.703 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002366/0.007661, allocations: 326.8 kB / 412.7 MB, free: 7.375 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.856e-05/0.00773, allocations: 47.97 kB / 412.8 MB, free: 7.328 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.807e-05/0.007808, allocations: 75.41 kB / 412.8 MB, free: 7.242 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001381/0.007946, allocations: 127.3 kB / 413 MB, free: 7.105 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.007948, allocations: 3.938 kB / 413 MB, free: 7.102 MB / 346.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002366/0.008184, allocations: 206.2 kB / 413.2 MB, free: 6.891 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/0.008197, allocations: 4 kB / 413.2 MB, free: 6.887 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.008203, allocations: 8.031 kB / 413.2 MB, free: 6.879 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001301/0.008333, allocations: 44.77 kB / 413.2 MB, free: 6.832 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001164/0.00845, allocations: 39.92 kB / 413.3 MB, free: 6.793 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001031/0.00948, allocations: 1.621 MB / 414.9 MB, free: 5.051 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.842e-05/0.009529, allocations: 15.91 kB / 414.9 MB, free: 5.035 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.638e-06/0.009538, allocations: 8.062 kB / 414.9 MB, free: 5.027 MB / 346.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 8.373e-05/0.009622, allocations: 126.2 kB / 415 MB, free: 4.895 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.154e-05/0.009644, allocations: 11.95 kB / 415 MB, free: 4.883 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.528e-05/0.009669, allocations: 21.11 kB / 415.1 MB, free: 4.863 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.009671, allocations: 4 kB / 415.1 MB, free: 4.859 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.009676, allocations: 0 / 415.1 MB, free: 4.859 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.00968, allocations: 3.938 kB / 415.1 MB, free: 4.855 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004799/0.01016, allocations: 0.5068 MB / 415.6 MB, free: 4.293 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.01016, allocations: 0 / 415.6 MB, free: 4.293 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.462e-05/0.01026, allocations: 35.92 kB / 415.6 MB, free: 4.258 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.854e-05/0.01032, allocations: 28.84 kB / 415.6 MB, free: 4.227 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/0.01034, allocations: 7.984 kB / 415.7 MB, free: 4.219 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001005/0.01134, allocations: 1.37 MB / 417 MB, free: 2.738 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.01134, allocations: 4.094 kB / 417 MB, free: 2.734 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003147/0.01166, allocations: 351 kB / 417.4 MB, free: 2.371 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.351e-05/0.01167, allocations: 11.97 kB / 417.4 MB, free: 2.359 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.123e-05/0.01168, allocations: 4 kB / 417.4 MB, free: 2.355 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.029e-05/0.01173, allocations: 8 kB / 417.4 MB, free: 2.348 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.807e-05/0.01177, allocations: 11.97 kB / 417.4 MB, free: 2.336 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.909e-06/0.01178, allocations: 4 kB / 417.4 MB, free: 2.332 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.968e-05/0.01183, allocations: 115.2 kB / 417.5 MB, free: 2.219 MB / 346.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01183, allocations: 4 kB / 417.5 MB, free: 2.215 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002236/0.01205, allocations: 40 kB / 417.6 MB, free: 2.176 MB / 346.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.0004851/0.01253, allocations: 0.8812 MB / 418.4 MB, free: 1.262 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003555/0.01289, allocations: 254.7 kB / 418.7 MB, free: 1 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.01289, allocations: 128 / 418.7 MB, free: 1 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001412/0.01303, allocations: 194.6 kB / 418.9 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002471/0.01328, allocations: 22.97 kB / 418.9 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001664/0.01494, allocations: 2.002 MB / 420.9 MB, free: 14.66 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.018e-05/0.01503, allocations: 111.8 kB / 421 MB, free: 14.54 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.225e-05/0.01508, allocations: 9.484 kB / 421 MB, free: 14.52 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.965e-05/0.01514, allocations: 44.48 kB / 421.1 MB, free: 14.48 MB / 362.7 MB Notification: Performance of SimCode: time 6.31e-07/0.01514, allocations: 0 / 421.1 MB, free: 14.48 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01909/0.03422, allocations: 4.136 MB / 425.2 MB, free: 10.34 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.902/6.936, allocations: 11.95 kB / 425.2 MB, free: 10.33 MB / 362.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins/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: 9.172490601427853]