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.0009297/0.0009297, allocations: 80.48 kB / 19.93 MB, free: 4.625 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.001099/0.001099, allocations: 177.9 kB / 23.21 MB, free: 1.344 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.8822/0.8822, allocations: 158.6 MB / 185 MB, free: 3.027 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.1259/0.1259, allocations: 32.38 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.373e-06/1.373e-06, allocations: 3.938 kB / 406.8 MB, free: 2.266 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.62e-05/1.757e-05, allocations: 5.938 kB / 406.8 MB, free: 2.262 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002376/0.002393, allocations: 1.856 MB / 408.7 MB, free: 400 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006293/0.003023, allocations: 0.519 MB / 409.2 MB, free: 15.86 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.296e-05/0.003106, allocations: 7.938 kB / 409.2 MB, free: 15.86 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001112/0.003217, allocations: 23.78 kB / 409.2 MB, free: 15.83 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 6.915e-05/0.003286, allocations: 43.58 kB / 409.3 MB, free: 15.79 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001607/0.003447, allocations: 31.94 kB / 409.3 MB, free: 15.76 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001383/0.003585, allocations: 151.3 kB / 409.5 MB, free: 15.61 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001335/0.003718, allocations: 41.83 kB / 409.5 MB, free: 15.56 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001036/0.003822, allocations: 87.8 kB / 409.6 MB, free: 15.48 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.942e-05/0.003901, allocations: 47.81 kB / 409.6 MB, free: 15.43 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 3.007e-05/0.003932, allocations: 16 kB / 409.6 MB, free: 15.41 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.443e-05/0.003946, allocations: 12 kB / 409.7 MB, free: 15.4 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 2.25e-05/0.003968, allocations: 23.92 kB / 409.7 MB, free: 15.38 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 3.932e-05/0.004008, allocations: 51.89 kB / 409.7 MB, free: 15.33 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001536/0.004161, allocations: 155.4 kB / 409.9 MB, free: 15.18 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.004164, allocations: 3.984 kB / 409.9 MB, free: 15.17 MB / 394.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.004165, allocations: 0 / 409.9 MB, free: 15.17 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.697e-06/0.004169, allocations: 0 / 409.9 MB, free: 15.17 MB / 394.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.0003808/0.00455, allocations: 353.8 kB / 410.2 MB, free: 14.8 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.004585, allocations: 12.03 kB / 410.2 MB, free: 14.79 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.444e-05/0.00462, allocations: 46.73 kB / 410.3 MB, free: 14.73 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.573e-05/0.004646, allocations: 20.78 kB / 410.3 MB, free: 14.71 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001773/0.004823, allocations: 149.5 kB / 410.5 MB, free: 14.54 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.139e-05/0.004834, allocations: 8.375 kB / 410.5 MB, free: 14.53 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.428e-05/0.004859, allocations: 16.33 kB / 410.5 MB, free: 14.52 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001789/0.005037, allocations: 126.2 kB / 410.6 MB, free: 14.39 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.005048, allocations: 192 / 410.6 MB, free: 14.39 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.733e-05/0.005065, allocations: 7.938 kB / 410.6 MB, free: 14.38 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/0.005071, allocations: 4 kB / 410.6 MB, free: 14.38 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001173/0.005188, allocations: 91.88 kB / 410.7 MB, free: 14.29 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004731/0.005661, allocations: 403.5 kB / 411.1 MB, free: 13.85 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001481/0.00581, allocations: 102.5 kB / 411.2 MB, free: 13.74 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.041e-05/0.00588, allocations: 60.75 kB / 411.3 MB, free: 13.68 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.711e-05/0.005897, allocations: 4 kB / 411.3 MB, free: 13.67 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.758e-05/0.005915, allocations: 34.5 kB / 411.3 MB, free: 13.63 MB / 394.7 MB Notification: Performance of pre-optimization done (n=13): time 9.02e-07/0.005916, allocations: 0 / 411.3 MB, free: 13.63 MB / 394.7 MB Notification: Performance of matching and sorting (n=19): time 0.0008993/0.006815, allocations: 0.6708 MB / 412 MB, free: 12.9 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.703e-05/0.006852, allocations: 55.41 kB / 412 MB, free: 12.84 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.964e-05/0.006931, allocations: 138.1 kB / 412.2 MB, free: 12.69 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.272e-05/0.006944, allocations: 29.7 kB / 412.2 MB, free: 12.65 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.074e-05/0.006995, allocations: 112.5 kB / 412.3 MB, free: 12.54 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.238e-05/0.007027, allocations: 75.38 kB / 412.4 MB, free: 12.46 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.811e-05/0.007065, allocations: 37.72 kB / 412.4 MB, free: 12.42 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.179e-05/0.007137, allocations: 318.8 kB / 412.7 MB, free: 12.1 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.423e-05/0.007191, allocations: 47.91 kB / 412.8 MB, free: 12.05 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.253e-05/0.007264, allocations: 83.34 kB / 412.8 MB, free: 11.96 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001275/0.007391, allocations: 123.4 kB / 413 MB, free: 11.83 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.007394, allocations: 3.938 kB / 413 MB, free: 11.82 MB / 394.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002125/0.007607, allocations: 214.2 kB / 413.2 MB, free: 11.61 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.138e-05/0.007618, allocations: 4 kB / 413.2 MB, free: 11.6 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.007623, allocations: 4 kB / 413.2 MB, free: 11.6 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001122/0.007735, allocations: 44.77 kB / 413.2 MB, free: 11.55 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001034/0.007839, allocations: 31.98 kB / 413.3 MB, free: 11.52 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001159/0.008997, allocations: 1.625 MB / 414.9 MB, free: 9.785 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.94e-05/0.009037, allocations: 7.938 kB / 414.9 MB, free: 9.777 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.446e-06/0.009045, allocations: 8 kB / 414.9 MB, free: 9.77 MB / 394.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.989e-05/0.009115, allocations: 129.8 kB / 415 MB, free: 9.633 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.817e-05/0.009133, allocations: 12.19 kB / 415 MB, free: 9.621 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.201e-05/0.009155, allocations: 21.17 kB / 415.1 MB, free: 9.598 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.009157, allocations: 3.984 kB / 415.1 MB, free: 9.594 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.00916, allocations: 4 kB / 415.1 MB, free: 9.59 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.009164, allocations: 7.938 kB / 415.1 MB, free: 9.582 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004382/0.009603, allocations: 0.499 MB / 415.6 MB, free: 9.027 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.009604, allocations: 0 / 415.6 MB, free: 9.027 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.834e-05/0.009692, allocations: 39.92 kB / 415.6 MB, free: 8.988 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.808e-05/0.009761, allocations: 32.83 kB / 415.6 MB, free: 8.953 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.187e-06/0.00977, allocations: 4 kB / 415.7 MB, free: 8.949 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006711/0.01044, allocations: 1.373 MB / 417 MB, free: 7.465 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.01044, allocations: 0 / 417 MB, free: 7.465 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002799/0.01072, allocations: 341 kB / 417.4 MB, free: 7.109 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.48e-05/0.01074, allocations: 11.97 kB / 417.4 MB, free: 7.098 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.117e-05/0.01075, allocations: 8 kB / 417.4 MB, free: 7.09 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.486e-05/0.01079, allocations: 0 / 417.4 MB, free: 7.09 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.426e-05/0.01083, allocations: 19.97 kB / 417.4 MB, free: 7.07 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.611e-06/0.01083, allocations: 4.125 kB / 417.4 MB, free: 7.066 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.486e-05/0.01088, allocations: 114.8 kB / 417.5 MB, free: 6.957 MB / 394.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01088, allocations: 0 / 417.5 MB, free: 6.957 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0001968/0.01107, allocations: 40 kB / 417.6 MB, free: 6.918 MB / 394.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.0004446/0.01152, allocations: 0.874 MB / 418.4 MB, free: 6.012 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.000316/0.01183, allocations: 259 kB / 418.7 MB, free: 5.746 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.252e-06/0.01184, allocations: 0 / 418.7 MB, free: 5.746 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001254/0.01196, allocations: 186.6 kB / 418.9 MB, free: 5.551 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002179/0.01218, allocations: 28.02 kB / 418.9 MB, free: 5.523 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001466/0.01365, allocations: 2.016 MB / 420.9 MB, free: 3.395 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000325/0.01397, allocations: 103.8 kB / 421 MB, free: 3.273 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 3.402e-05/0.014, allocations: 9.484 kB / 421 MB, free: 3.266 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.194e-05/0.01406, allocations: 40.48 kB / 421.1 MB, free: 3.227 MB / 394.7 MB Notification: Performance of SimCode: time 4.61e-07/0.01406, allocations: 4 kB / 421.1 MB, free: 3.223 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01787/0.03192, allocations: 4.147 MB / 425.2 MB, free: 15.06 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.858/6.89, allocations: 3.984 kB / 425.2 MB, free: 15.05 MB / 410.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.89235686790198]