Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009391/0.0009391, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008651/0.0008651, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.899/0.899, allocations: 177 MB / 204.1 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2488/0.2488, allocations: 34.24 MB / 294.8 MB, free: 0.6914 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 442.1 MB, free: 1.602 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.609e-05/1.767e-05, allocations: 9.031 kB / 442.1 MB, free: 1.594 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.1988/0.1988, allocations: 1.876 MB / 444 MB, free: 43.24 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007086/0.1995, allocations: 0.5289 MB / 444.5 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.705e-05/0.1996, allocations: 6.938 kB / 444.5 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 9.703e-05/0.1997, allocations: 19 kB / 444.6 MB, free: 43.17 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.529e-05/0.1997, allocations: 43.83 kB / 444.6 MB, free: 43.15 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001861/0.1999, allocations: 58.34 kB / 444.7 MB, free: 43.14 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.000124/0.2001, allocations: 158.9 kB / 444.8 MB, free: 43.1 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001254/0.2002, allocations: 31.97 kB / 444.9 MB, free: 43.09 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001351/0.2003, allocations: 98.23 kB / 444.9 MB, free: 43.08 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.979e-05/0.2004, allocations: 46.05 kB / 445 MB, free: 43.07 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.474e-05/0.2004, allocations: 15.25 kB / 445 MB, free: 43.07 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.714e-05/0.2004, allocations: 17.91 kB / 445 MB, free: 43.07 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.374e-05/0.2004, allocations: 26.8 kB / 445 MB, free: 43.06 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.916e-05/0.2005, allocations: 50.77 kB / 445.1 MB, free: 43.05 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001753/0.2006, allocations: 158 kB / 445.3 MB, free: 43.03 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.2006, allocations: 0 / 445.3 MB, free: 43.03 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2006, allocations: 0 / 445.3 MB, free: 43.03 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.959e-06/0.2006, allocations: 0 / 445.3 MB, free: 43.03 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.0003565/0.201, allocations: 368.9 kB / 445.6 MB, free: 42.73 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.447e-05/0.201, allocations: 10.78 kB / 445.6 MB, free: 42.73 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.782e-05/0.2011, allocations: 44.33 kB / 445.7 MB, free: 42.69 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.801e-05/0.2012, allocations: 25.06 kB / 445.7 MB, free: 42.68 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001806/0.2013, allocations: 145.2 kB / 445.8 MB, free: 42.54 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.059e-05/0.2013, allocations: 13.05 kB / 445.8 MB, free: 42.54 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.147e-05/0.2014, allocations: 16.66 kB / 445.9 MB, free: 42.54 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001528/0.2015, allocations: 126 kB / 446 MB, free: 42.51 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.2015, allocations: 5.359 kB / 446 MB, free: 42.51 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.177e-05/0.2015, allocations: 10.62 kB / 446 MB, free: 42.5 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.2015, allocations: 2.719 kB / 446 MB, free: 42.5 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001033/0.2016, allocations: 78.38 kB / 446.1 MB, free: 42.5 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000396/0.202, allocations: 419.3 kB / 446.5 MB, free: 42.24 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001457/0.2022, allocations: 104.4 kB / 446.6 MB, free: 42.21 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.846e-05/0.2022, allocations: 52.59 kB / 446.6 MB, free: 42.21 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.395e-05/0.2023, allocations: 0 / 446.6 MB, free: 42.21 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.248e-05/0.2023, allocations: 44.31 kB / 446.7 MB, free: 42.16 MB / 410.7 MB Notification: Performance of pre-optimization done (n=13): time 9.32e-07/0.2023, allocations: 0 / 446.7 MB, free: 42.16 MB / 410.7 MB Notification: Performance of matching and sorting (n=19): time 0.000826/0.2031, allocations: 0.658 MB / 447.3 MB, free: 41.75 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.526e-05/0.2031, allocations: 57.52 kB / 447.4 MB, free: 41.69 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.681e-05/0.2032, allocations: 136.3 kB / 447.5 MB, free: 41.58 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.206e-06/0.2032, allocations: 32.3 kB / 447.6 MB, free: 41.55 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.544e-05/0.2032, allocations: 116.5 kB / 447.7 MB, free: 41.44 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.135e-05/0.2033, allocations: 71.06 kB / 447.7 MB, free: 41.38 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.485e-05/0.2033, allocations: 35.73 kB / 447.8 MB, free: 41.36 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.847e-05/0.2033, allocations: 324.6 kB / 448.1 MB, free: 41.04 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.287e-05/0.2034, allocations: 43.81 kB / 448.1 MB, free: 41.02 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.374e-05/0.2034, allocations: 79.47 kB / 448.2 MB, free: 40.97 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001179/0.2036, allocations: 125.8 kB / 448.3 MB, free: 40.9 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.2036, allocations: 10.75 kB / 448.4 MB, free: 40.89 MB / 410.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002/0.2038, allocations: 207.7 kB / 448.6 MB, free: 40.79 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/0.2038, allocations: 9.156 kB / 448.6 MB, free: 40.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/0.2038, allocations: 4.031 kB / 448.6 MB, free: 40.78 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001142/0.2039, allocations: 50.61 kB / 448.6 MB, free: 40.76 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.791e-05/0.204, allocations: 28.38 kB / 448.6 MB, free: 40.76 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007094/0.2047, allocations: 1.624 MB / 450.3 MB, free: 39.24 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.843e-05/0.2047, allocations: 10.81 kB / 450.3 MB, free: 39.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.526e-06/0.2047, allocations: 9.969 kB / 450.3 MB, free: 39.23 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.14e-05/0.2048, allocations: 141.2 kB / 450.4 MB, free: 39.09 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.754e-05/0.2048, allocations: 9.703 kB / 450.4 MB, free: 39.09 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.972e-05/0.2048, allocations: 19.72 kB / 450.5 MB, free: 39.08 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.2048, allocations: 2.844 kB / 450.5 MB, free: 39.08 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.2048, allocations: 0 / 450.5 MB, free: 39.08 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.718e-06/0.2049, allocations: 7.172 kB / 450.5 MB, free: 39.07 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003996/0.2053, allocations: 0.5103 MB / 451 MB, free: 38.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2053, allocations: 0 / 451 MB, free: 38.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.881e-05/0.2053, allocations: 32.05 kB / 451 MB, free: 38.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.268e-05/0.2054, allocations: 29.75 kB / 451 MB, free: 38.67 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.004e-05/0.2054, allocations: 6.781 kB / 451 MB, free: 38.67 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004728/0.2059, allocations: 1.371 MB / 452.4 MB, free: 37.35 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.2059, allocations: 0 / 452.4 MB, free: 37.35 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002572/0.2061, allocations: 345.1 kB / 452.8 MB, free: 37.12 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.276e-05/0.2062, allocations: 10.69 kB / 452.8 MB, free: 37.11 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.204e-05/0.2062, allocations: 10.19 kB / 452.8 MB, free: 37.11 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.696e-05/0.2062, allocations: 6.844 kB / 452.8 MB, free: 37.11 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.432e-05/0.2063, allocations: 23.19 kB / 452.8 MB, free: 37.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.06e-06/0.2063, allocations: 2.844 kB / 452.8 MB, free: 37.1 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.605e-05/0.2063, allocations: 115.5 kB / 452.9 MB, free: 37.01 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2063, allocations: 6.844 kB / 452.9 MB, free: 37 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002046/0.2065, allocations: 38.5 kB / 453 MB, free: 37 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.0003665/0.2069, allocations: 0.8642 MB / 453.8 MB, free: 36.25 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002836/0.2071, allocations: 255.9 kB / 454.1 MB, free: 36.09 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.2072, allocations: 6.844 kB / 454.1 MB, free: 36.09 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000112/0.2073, allocations: 185.2 kB / 454.3 MB, free: 35.95 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002222/0.2075, allocations: 23.27 kB / 454.3 MB, free: 35.94 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001236/0.2087, allocations: 2.008 MB / 456.3 MB, free: 34.36 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.151e-05/0.2088, allocations: 110.1 kB / 456.4 MB, free: 34.28 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 3.523e-05/0.2088, allocations: 11.25 kB / 456.4 MB, free: 34.28 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.09e-05/0.2089, allocations: 44.53 kB / 456.5 MB, free: 34.25 MB / 410.7 MB Notification: Performance of SimCode: time 6.41e-07/0.2089, allocations: 0 / 456.5 MB, free: 34.25 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01864/0.2275, allocations: 4.174 MB / 460.6 MB, free: 33.14 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.292/7.519, allocations: 8.719 kB / 460.6 MB, free: 33.13 MB / 410.7 MB " [Timeout remaining time 652] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv. Warning: Get data of variable J2.phi from file ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv failed! Error: Could not read variable J2.w in file ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv. Warning: Get data of variable J2.w from file ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.633179225958884]