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.001387/0.001387, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001732/0.001732, allocations: 210.4 kB / 23.73 MB, free: 4.523 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.58/1.58, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.236/0.236, allocations: 46.96 MB / 360.9 MB, free: 4.148 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.002083/0.002083, allocations: 67.91 kB / 0.4966 GB, free: 7.258 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3797/0.3818, allocations: 66.04 MB / 0.5611 GB, free: 4.199 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.004769/0.3866, allocations: 1.87 MB / 0.5629 GB, free: 2.316 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001482/0.3881, allocations: 0.5309 MB / 0.5634 GB, free: 1.781 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001224/0.3882, allocations: 4 kB / 0.5634 GB, free: 1.777 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001673/0.3884, allocations: 19.73 kB / 0.5634 GB, free: 1.758 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001631/0.3885, allocations: 43.62 kB / 0.5635 GB, free: 1.715 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003264/0.3889, allocations: 47.94 kB / 0.5635 GB, free: 1.668 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002953/0.3892, allocations: 147.3 kB / 0.5637 GB, free: 1.523 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002387/0.3894, allocations: 53.77 kB / 0.5637 GB, free: 1.465 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002192/0.3896, allocations: 71.78 kB / 0.5638 GB, free: 1.395 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001573/0.3898, allocations: 63.69 kB / 0.5638 GB, free: 1.332 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.512e-05/0.3898, allocations: 12 kB / 0.5638 GB, free: 1.32 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.234e-05/0.3899, allocations: 16 kB / 0.5639 GB, free: 1.305 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.615e-05/0.3899, allocations: 31.86 kB / 0.5639 GB, free: 1.273 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.94e-05/0.39, allocations: 51.73 kB / 0.5639 GB, free: 1.223 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003318/0.3903, allocations: 165.7 kB / 0.5641 GB, free: 1.066 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.3903, allocations: 0 / 0.5641 GB, free: 1.066 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3904, allocations: 0 / 0.5641 GB, free: 1.066 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.663e-06/0.3904, allocations: 0 / 0.5641 GB, free: 1.066 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.0007349/0.3911, allocations: 361.7 kB / 0.5644 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.713e-05/0.3911, allocations: 12.03 kB / 0.5645 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002063/0.3913, allocations: 28.77 kB / 0.5645 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003652/0.3917, allocations: 146.3 kB / 0.5646 GB, free: 488 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.376e-05/0.3917, allocations: 12.38 kB / 0.5646 GB, free: 476 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.317e-05/0.3918, allocations: 16.33 kB / 0.5647 GB, free: 460 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003728/0.3922, allocations: 122.3 kB / 0.5648 GB, free: 332 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.548e-05/0.3922, allocations: 11.98 kB / 0.5648 GB, free: 320 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.275e-05/0.3922, allocations: 7.938 kB / 0.5648 GB, free: 312 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/0.3922, allocations: 8 kB / 0.5648 GB, free: 304 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002789/0.3925, allocations: 87.86 kB / 0.5649 GB, free: 216 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009135/0.3934, allocations: 360.1 kB / 0.5652 GB, free: 15.83 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003297/0.3937, allocations: 114.5 kB / 0.5653 GB, free: 15.71 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001607/0.3939, allocations: 56.2 kB / 0.5654 GB, free: 15.65 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.441e-05/0.3939, allocations: 7.938 kB / 0.5654 GB, free: 15.64 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.287e-05/0.394, allocations: 30.56 kB / 0.5654 GB, free: 15.61 MB / 414.1 MB Notification: Performance of pre-optimization done (n=13): time 1.633e-06/0.394, allocations: 4 kB / 0.5654 GB, free: 15.6 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.002088/0.396, allocations: 0.6597 MB / 0.5661 GB, free: 14.88 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.73e-05/0.3961, allocations: 51.41 kB / 0.5661 GB, free: 14.82 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001574/0.3963, allocations: 132.7 kB / 0.5662 GB, free: 14.68 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.049e-05/0.3963, allocations: 29.7 kB / 0.5663 GB, free: 14.65 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.3964, allocations: 120.4 kB / 0.5664 GB, free: 14.53 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.971e-05/0.3965, allocations: 71.38 kB / 0.5665 GB, free: 14.46 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.997e-05/0.3966, allocations: 37.7 kB / 0.5665 GB, free: 14.41 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001802/0.3967, allocations: 318.8 kB / 0.5668 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001442/0.3969, allocations: 43.98 kB / 0.5668 GB, free: 14.05 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000182/0.3971, allocations: 75.41 kB / 0.5669 GB, free: 13.96 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003368/0.3974, allocations: 135.3 kB / 0.567 GB, free: 13.82 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.3974, allocations: 3.938 kB / 0.567 GB, free: 13.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005566/0.398, allocations: 198.3 kB / 0.5672 GB, free: 13.61 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.398, allocations: 4 kB / 0.5672 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.777e-06/0.398, allocations: 4 kB / 0.5672 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002402/0.3982, allocations: 52.83 kB / 0.5673 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002461/0.3985, allocations: 35.92 kB / 0.5673 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002115/0.4006, allocations: 1.598 MB / 0.5689 GB, free: 11.81 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001145/0.4007, allocations: 7.969 kB / 0.5689 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.734e-05/0.4007, allocations: 8 kB / 0.5689 GB, free: 11.8 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.0001601/0.4009, allocations: 129.8 kB / 0.569 GB, free: 11.66 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.427e-05/0.401, allocations: 11.95 kB / 0.569 GB, free: 11.65 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.95e-05/0.401, allocations: 12.78 kB / 0.569 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.401, allocations: 7.938 kB / 0.5691 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.401, allocations: 0 / 0.5691 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.401, allocations: 8 kB / 0.5691 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001058/0.4021, allocations: 486.3 kB / 0.5695 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.4021, allocations: 192 / 0.5695 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002521/0.4023, allocations: 43.86 kB / 0.5696 GB, free: 11.06 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001602/0.4025, allocations: 36.83 kB / 0.5696 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.567e-05/0.4025, allocations: 0 / 0.5696 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001619/0.4041, allocations: 1.358 MB / 0.5709 GB, free: 9.559 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.542e-06/0.4041, allocations: 0 / 0.5709 GB, free: 9.559 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007234/0.4049, allocations: 339.4 kB / 0.5713 GB, free: 9.207 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.337e-05/0.4049, allocations: 15.92 kB / 0.5713 GB, free: 9.191 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.622e-05/0.4049, allocations: 4 kB / 0.5713 GB, free: 9.188 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001524/0.4051, allocations: 4 kB / 0.5713 GB, free: 9.184 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.858e-05/0.4051, allocations: 20.09 kB / 0.5713 GB, free: 9.164 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.509e-05/0.4052, allocations: 4 kB / 0.5713 GB, free: 9.16 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.772e-05/0.4053, allocations: 99.27 kB / 0.5714 GB, free: 9.062 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4053, allocations: 0 / 0.5714 GB, free: 9.062 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000618/0.4059, allocations: 40 kB / 0.5714 GB, free: 9.023 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.0001689/0.406, allocations: 99.19 kB / 0.5715 GB, free: 8.918 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007384/0.4068, allocations: 254.9 kB / 0.5718 GB, free: 8.656 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.4068, allocations: 0 / 0.5718 GB, free: 8.656 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000411/0.4072, allocations: 190.5 kB / 0.572 GB, free: 8.457 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004716/0.4077, allocations: 23.92 kB / 0.572 GB, free: 8.434 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008954/0.4086, allocations: 445.6 kB / 0.5724 GB, free: 7.973 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001101/0.4087, allocations: 111.7 kB / 0.5725 GB, free: 7.84 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.781e-05/0.4087, allocations: 9.422 kB / 0.5725 GB, free: 7.832 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.371e-05/0.4088, allocations: 19.44 kB / 0.5725 GB, free: 7.812 MB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4088, allocations: 0 / 0.5725 GB, free: 7.812 MB / 414.1 MB Notification: Performance of Templates: time 0.005876/0.4146, allocations: 1.779 MB / 0.5743 GB, free: 6.055 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/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_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: 5.527347716037184]