Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.002019/0.002019, allocations: 99.66 kB / 21.18 MB, free: 0.5273 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.00178/0.00178, allocations: 215.6 kB / 24.48 MB, free: 3.84 MB / 14.72 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 1.721/1.721, allocations: 230.6 MB / 258.3 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2374/0.2374, allocations: 46.96 MB / 361.6 MB, free: 4.027 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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: translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002121/0.002121, allocations: 67.91 kB / 0.4973 GB, free: 7.227 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3822/0.3843, allocations: 66.04 MB / 0.5618 GB, free: 4.164 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003282/0.3876, allocations: 1.864 MB / 0.5636 GB, free: 2.289 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001028/0.3886, allocations: 0.527 MB / 0.5641 GB, free: 1.758 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001079/0.3887, allocations: 7.938 kB / 0.5642 GB, free: 1.75 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001298/0.3888, allocations: 19.8 kB / 0.5642 GB, free: 1.73 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001028/0.3889, allocations: 47.62 kB / 0.5642 GB, free: 1.684 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002357/0.3892, allocations: 47.88 kB / 0.5643 GB, free: 1.637 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002123/0.3894, allocations: 151.3 kB / 0.5644 GB, free: 1.488 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001605/0.3895, allocations: 41.84 kB / 0.5644 GB, free: 1.441 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00017/0.3897, allocations: 71.7 kB / 0.5645 GB, free: 1.371 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001128/0.3898, allocations: 55.7 kB / 0.5646 GB, free: 1.316 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.63e-05/0.3898, allocations: 12 kB / 0.5646 GB, free: 1.305 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.646e-05/0.3899, allocations: 12 kB / 0.5646 GB, free: 1.293 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.495e-05/0.3899, allocations: 27.92 kB / 0.5646 GB, free: 1.266 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.745e-05/0.39, allocations: 63.72 kB / 0.5647 GB, free: 1.203 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002445/0.3902, allocations: 161.7 kB / 0.5648 GB, free: 1.051 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3902, allocations: 0 / 0.5648 GB, free: 1.051 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3902, allocations: 0 / 0.5648 GB, free: 1.051 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.593e-06/0.3903, allocations: 0 / 0.5648 GB, free: 1.051 MB / 398.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.0005798/0.3908, allocations: 361.7 kB / 0.5652 GB, free: 0.668 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.3909, allocations: 8.031 kB / 0.5652 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001568/0.391, allocations: 32.77 kB / 0.5652 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002693/0.3913, allocations: 154.3 kB / 0.5654 GB, free: 464 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.556e-05/0.3913, allocations: 8.375 kB / 0.5654 GB, free: 456 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.744e-05/0.3914, allocations: 20.33 kB / 0.5654 GB, free: 436 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002657/0.3916, allocations: 126.3 kB / 0.5655 GB, free: 304 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.466e-05/0.3916, allocations: 0 / 0.5655 GB, free: 304 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.85e-05/0.3916, allocations: 8 kB / 0.5655 GB, free: 296 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.3917, allocations: 0 / 0.5655 GB, free: 296 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001857/0.3918, allocations: 87.92 kB / 0.5656 GB, free: 208 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006673/0.3925, allocations: 372.1 kB / 0.566 GB, free: 15.8 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002322/0.3927, allocations: 114.5 kB / 0.5661 GB, free: 15.68 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001122/0.3929, allocations: 56.78 kB / 0.5661 GB, free: 15.62 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.933e-05/0.3929, allocations: 3.938 kB / 0.5661 GB, free: 15.62 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.59e-05/0.3929, allocations: 34.56 kB / 0.5662 GB, free: 15.58 MB / 414.1 MB Notification: Performance of pre-optimization done (n=13): time 1.182e-06/0.3929, allocations: 0 / 0.5662 GB, free: 15.58 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.001399/0.3943, allocations: 0.6576 MB / 0.5668 GB, free: 14.87 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.737e-05/0.3943, allocations: 59.39 kB / 0.5669 GB, free: 14.8 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001118/0.3945, allocations: 125.8 kB / 0.567 GB, free: 14.67 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.165e-05/0.3945, allocations: 29.7 kB / 0.567 GB, free: 14.63 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.029e-05/0.3946, allocations: 116.4 kB / 0.5671 GB, free: 14.52 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.833e-05/0.3946, allocations: 71.38 kB / 0.5672 GB, free: 14.45 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.134e-05/0.3947, allocations: 37.7 kB / 0.5672 GB, free: 14.4 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.3948, allocations: 322.8 kB / 0.5675 GB, free: 14.08 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.857e-05/0.3949, allocations: 51.92 kB / 0.5676 GB, free: 14.03 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001204/0.395, allocations: 73.09 kB / 0.5676 GB, free: 13.95 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002437/0.3953, allocations: 139.2 kB / 0.5678 GB, free: 13.8 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.243e-06/0.3953, allocations: 3.938 kB / 0.5678 GB, free: 13.79 MB / 414.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003756/0.3957, allocations: 202.3 kB / 0.568 GB, free: 13.59 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.3957, allocations: 4 kB / 0.568 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.3957, allocations: 0 / 0.568 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001667/0.3958, allocations: 52.8 kB / 0.568 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001651/0.396, allocations: 35.97 kB / 0.5681 GB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001501/0.3975, allocations: 1.59 MB / 0.5696 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.811e-05/0.3976, allocations: 11.94 kB / 0.5696 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.299e-05/0.3976, allocations: 7.984 kB / 0.5696 GB, free: 11.78 MB / 414.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.0001157/0.3977, allocations: 133.8 kB / 0.5698 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.339e-05/0.3978, allocations: 7.953 kB / 0.5698 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.417e-05/0.3978, allocations: 20.78 kB / 0.5698 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.3978, allocations: 256 / 0.5698 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.3978, allocations: 0 / 0.5698 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.3978, allocations: 11.94 kB / 0.5698 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007539/0.3986, allocations: 487.5 kB / 0.5703 GB, free: 11.08 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.3986, allocations: 0 / 0.5703 GB, free: 11.08 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001654/0.3987, allocations: 39.86 kB / 0.5703 GB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001045/0.3988, allocations: 28.83 kB / 0.5703 GB, free: 11.01 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.574e-05/0.3989, allocations: 8 kB / 0.5703 GB, free: 11 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00117/0.4, allocations: 1.354 MB / 0.5717 GB, free: 9.539 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.4, allocations: 4.031 kB / 0.5717 GB, free: 9.535 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005021/0.4005, allocations: 345.1 kB / 0.572 GB, free: 9.176 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.888e-05/0.4005, allocations: 11.91 kB / 0.572 GB, free: 9.164 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.581e-05/0.4006, allocations: 0 / 0.572 GB, free: 9.164 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.123e-05/0.4007, allocations: 8 kB / 0.572 GB, free: 9.156 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.543e-05/0.4007, allocations: 15.97 kB / 0.572 GB, free: 9.141 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.197e-06/0.4007, allocations: 4 kB / 0.572 GB, free: 9.137 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.645e-05/0.4008, allocations: 98.08 kB / 0.5721 GB, free: 9.043 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4008, allocations: 0 / 0.5721 GB, free: 9.043 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003343/0.4011, allocations: 40 kB / 0.5722 GB, free: 9.004 MB / 414.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.0001119/0.4012, allocations: 103.3 kB / 0.5723 GB, free: 8.895 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005007/0.4017, allocations: 250.8 kB / 0.5725 GB, free: 8.637 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.4017, allocations: 0 / 0.5725 GB, free: 8.637 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002679/0.402, allocations: 194.7 kB / 0.5727 GB, free: 8.434 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003161/0.4023, allocations: 19.94 kB / 0.5727 GB, free: 8.414 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008315/0.4031, allocations: 483.7 kB / 0.5732 GB, free: 7.914 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001084/0.4033, allocations: 111.7 kB / 0.5733 GB, free: 7.781 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.154e-05/0.4033, allocations: 11.44 kB / 0.5733 GB, free: 7.77 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.4033, allocations: 0 / 0.5733 GB, free: 7.77 MB / 414.1 MB Notification: Performance of Templates: time 0.004523/0.4078, allocations: 2.474 MB / 0.5757 GB, free: 5.297 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_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.459046912845224]