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.002362/0.002362, allocations: 103.5 kB / 20.97 MB, free: 3.438 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.00256/0.00256, allocations: 152.9 kB / 24.27 MB, free: 144 kB / 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 1.639/1.639, allocations: 177 MB / 204.4 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] 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.4751/0.4751, allocations: 34.25 MB / 295.2 MB, free: 0.6445 MB / 266.7 MB " [Timeout remaining time 179] 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: translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.054e-06/2.054e-06, allocations: 0 / 377.2 MB, free: 2.918 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.723e-05/3.928e-05, allocations: 4.141 kB / 377.2 MB, free: 2.914 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.00529/0.005329, allocations: 1.93 MB / 379.1 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001643/0.006972, allocations: 0.5493 MB / 379.7 MB, free: 424 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001209/0.007093, allocations: 4 kB / 379.7 MB, free: 420 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001858/0.007279, allocations: 23.78 kB / 379.7 MB, free: 396 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001903/0.007469, allocations: 43.58 kB / 379.7 MB, free: 352 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003332/0.007803, allocations: 43.88 kB / 379.8 MB, free: 308 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003296/0.008132, allocations: 159.2 kB / 379.9 MB, free: 148 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001909/0.008323, allocations: 41.78 kB / 380 MB, free: 104 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000315/0.008638, allocations: 95.78 kB / 380.1 MB, free: 8 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002116/0.00885, allocations: 52 kB / 380.1 MB, free: 15.95 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 4.082e-05/0.008891, allocations: 12 kB / 380.1 MB, free: 15.94 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.897e-05/0.00897, allocations: 16 kB / 380.2 MB, free: 15.93 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 5.499e-05/0.009025, allocations: 31.84 kB / 380.2 MB, free: 15.89 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 9.616e-05/0.009121, allocations: 43.91 kB / 380.2 MB, free: 15.85 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000379/0.0095, allocations: 159.4 kB / 380.4 MB, free: 15.7 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.009504, allocations: 0 / 380.4 MB, free: 15.7 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.009505, allocations: 0 / 380.4 MB, free: 15.7 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.009511, allocations: 0 / 380.4 MB, free: 15.7 MB / 362.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.0009342/0.01044, allocations: 479.7 kB / 380.9 MB, free: 15.19 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.297e-05/0.01051, allocations: 16.03 kB / 380.9 MB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002466/0.01075, allocations: 32.83 kB / 380.9 MB, free: 15.14 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003377/0.01109, allocations: 152.4 kB / 381 MB, free: 14.97 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.343e-05/0.01112, allocations: 8.375 kB / 381.1 MB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.51e-05/0.01117, allocations: 16.38 kB / 381.1 MB, free: 14.95 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000388/0.01156, allocations: 118.2 kB / 381.2 MB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.663e-05/0.01159, allocations: 192 / 381.2 MB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.553e-05/0.01161, allocations: 8.125 kB / 381.2 MB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.087e-06/0.01162, allocations: 4 kB / 381.2 MB, free: 14.81 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002736/0.01189, allocations: 83.89 kB / 381.3 MB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001144/0.01304, allocations: 451.3 kB / 381.7 MB, free: 14.25 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003866/0.01342, allocations: 123 kB / 381.8 MB, free: 14.12 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001999/0.01362, allocations: 63.64 kB / 381.9 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.404e-05/0.01365, allocations: 0 / 381.9 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.726e-05/0.0137, allocations: 37.39 kB / 381.9 MB, free: 14.01 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.282e-06/0.0137, allocations: 0 / 381.9 MB, free: 14.01 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.002356/0.01605, allocations: 0.6817 MB / 382.6 MB, free: 13.27 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.197e-05/0.01612, allocations: 55.34 kB / 382.7 MB, free: 13.2 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002595/0.01638, allocations: 196.2 kB / 382.9 MB, free: 12.99 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.919e-05/0.01642, allocations: 29.7 kB / 382.9 MB, free: 12.96 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001829/0.01661, allocations: 163.2 kB / 383.1 MB, free: 12.79 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001062/0.01671, allocations: 67.44 kB / 383.1 MB, free: 12.72 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001237/0.01684, allocations: 47.36 kB / 383.2 MB, free: 12.67 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003993/0.01724, allocations: 0.4962 MB / 383.7 MB, free: 12.16 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001755/0.01741, allocations: 47.92 kB / 383.7 MB, free: 12.11 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002331/0.01764, allocations: 90.72 kB / 383.8 MB, free: 12.01 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003801/0.01802, allocations: 146.7 kB / 383.9 MB, free: 11.85 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.01803, allocations: 4 kB / 383.9 MB, free: 11.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006631/0.01869, allocations: 217 kB / 384.2 MB, free: 11.62 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.415e-05/0.01871, allocations: 4 kB / 384.2 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.01872, allocations: 4 kB / 384.2 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002978/0.01902, allocations: 47.69 kB / 384.2 MB, free: 11.56 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002621/0.01928, allocations: 43.86 kB / 384.3 MB, free: 11.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003278/0.02256, allocations: 2.228 MB / 386.5 MB, free: 9.176 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001126/0.02267, allocations: 0 / 386.5 MB, free: 9.176 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.665e-05/0.0227, allocations: 16.03 kB / 386.5 MB, free: 9.16 MB / 362.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 0.0002378/0.02294, allocations: 172.5 kB / 386.7 MB, free: 8.98 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.418e-05/0.02302, allocations: 23.84 kB / 386.7 MB, free: 8.957 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.785e-05/0.02309, allocations: 20.77 kB / 386.7 MB, free: 8.934 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.658e-06/0.0231, allocations: 8.031 kB / 386.7 MB, free: 8.926 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.02311, allocations: 0 / 386.7 MB, free: 8.926 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/0.02311, allocations: 0 / 386.7 MB, free: 8.926 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001416/0.02453, allocations: 0.5617 MB / 387.3 MB, free: 8.316 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.02453, allocations: 0 / 387.3 MB, free: 8.316 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002713/0.0248, allocations: 31.98 kB / 387.3 MB, free: 8.285 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002126/0.02502, allocations: 39.66 kB / 387.3 MB, free: 8.242 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.798e-05/0.02503, allocations: 0 / 387.3 MB, free: 8.242 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002415/0.02745, allocations: 1.874 MB / 389.2 MB, free: 6.25 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.02745, allocations: 0 / 389.2 MB, free: 6.25 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009106/0.02836, allocations: 410 kB / 389.6 MB, free: 5.824 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.006e-05/0.02839, allocations: 11.89 kB / 389.6 MB, free: 5.812 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.242e-05/0.02842, allocations: 8 kB / 389.6 MB, free: 5.805 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001591/0.02858, allocations: 11.98 kB / 389.7 MB, free: 5.793 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.745e-05/0.02866, allocations: 11.98 kB / 389.7 MB, free: 5.781 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.23e-05/0.02868, allocations: 11.98 kB / 389.7 MB, free: 5.77 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001463/0.02883, allocations: 141.4 kB / 389.8 MB, free: 5.633 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.02883, allocations: 8 kB / 389.8 MB, free: 5.625 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006253/0.02946, allocations: 40 kB / 389.9 MB, free: 5.586 MB / 362.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.0001767/0.02963, allocations: 91.39 kB / 390 MB, free: 5.484 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000907/0.03054, allocations: 334.2 kB / 390.3 MB, free: 5.137 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.03054, allocations: 0 / 390.3 MB, free: 5.137 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005062/0.03105, allocations: 265.5 kB / 390.5 MB, free: 4.855 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005092/0.03156, allocations: 23.92 kB / 390.6 MB, free: 4.832 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001196/0.03275, allocations: 394.5 kB / 390.9 MB, free: 4.41 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002211/0.03297, allocations: 111.8 kB / 391.1 MB, free: 4.277 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.134e-05/0.03305, allocations: 13.48 kB / 391.1 MB, free: 4.266 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.724e-05/0.03311, allocations: 16.5 kB / 391.1 MB, free: 4.25 MB / 362.7 MB Notification: Performance of SimCode: time 6.31e-07/0.03311, allocations: 0 / 391.1 MB, free: 4.25 MB / 362.7 MB Notification: Performance of Templates: time 0.008126/0.04124, allocations: 1.626 MB / 392.7 MB, free: 2.637 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile [Timeout 660] (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 & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.305674556992017]