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.001568/0.001568, allocations: 91.5 kB / 21.19 MB, free: 3.375 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.001785/0.001785, allocations: 156.5 kB / 24.55 MB, free: 16 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.038/1.038, allocations: 177 MB / 204.8 MB, free: 5.566 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.2691/0.2691, allocations: 34.86 MB / 296.3 MB, free: 0.5586 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: 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 1.333e-06/1.333e-06, allocations: 0 / 378.7 MB, free: 2.125 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.749e-05/2.882e-05, allocations: 3.297 kB / 378.7 MB, free: 2.121 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002448/0.002477, allocations: 1.963 MB / 380.7 MB, free: 148 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008993/0.003376, allocations: 0.5569 MB / 381.3 MB, free: 15.58 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.449e-05/0.003471, allocations: 0 / 381.3 MB, free: 15.58 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001296/0.0036, allocations: 27.73 kB / 381.3 MB, free: 15.55 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 8.434e-05/0.003685, allocations: 39.62 kB / 381.3 MB, free: 15.52 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000269/0.003954, allocations: 55.81 kB / 381.4 MB, free: 15.46 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001868/0.00414, allocations: 151.2 kB / 381.5 MB, free: 15.31 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001304/0.004271, allocations: 45.78 kB / 381.6 MB, free: 15.27 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001702/0.004441, allocations: 95.78 kB / 381.7 MB, free: 15.17 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.038e-05/0.004531, allocations: 51.81 kB / 381.7 MB, free: 15.12 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 2.125e-05/0.004553, allocations: 15.94 kB / 381.7 MB, free: 15.11 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.554e-05/0.004598, allocations: 12 kB / 381.7 MB, free: 15.09 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 2.209e-05/0.00462, allocations: 27.91 kB / 381.8 MB, free: 15.07 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 4.583e-05/0.004666, allocations: 51.84 kB / 381.8 MB, free: 15.02 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001913/0.004857, allocations: 103.6 kB / 381.9 MB, free: 14.91 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.766e-06/0.00486, allocations: 4 kB / 381.9 MB, free: 14.91 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.004861, allocations: 0 / 381.9 MB, free: 14.91 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.004866, allocations: 0 / 381.9 MB, free: 14.91 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.0004282/0.005295, allocations: 460 kB / 382.4 MB, free: 14.43 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.005331, allocations: 8.031 kB / 382.4 MB, free: 14.42 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001209/0.005452, allocations: 36.83 kB / 382.4 MB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001724/0.005624, allocations: 156.4 kB / 382.6 MB, free: 14.2 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.52e-05/0.005639, allocations: 16.36 kB / 382.6 MB, free: 14.19 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.016e-05/0.00567, allocations: 16.38 kB / 382.6 MB, free: 14.17 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001803/0.00585, allocations: 106.9 kB / 382.7 MB, free: 14.06 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.00586, allocations: 192 / 382.7 MB, free: 14.06 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.404e-05/0.005874, allocations: 8.125 kB / 382.7 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.802e-06/0.005881, allocations: 7.938 kB / 382.7 MB, free: 14.04 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.913e-05/0.00596, allocations: 47.89 kB / 382.8 MB, free: 14 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004841/0.006444, allocations: 423.3 kB / 383.2 MB, free: 13.55 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004451/0.006889, allocations: 98.95 kB / 383.3 MB, free: 13.44 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.571e-05/0.006945, allocations: 35.67 kB / 383.3 MB, free: 13.4 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.792e-05/0.006963, allocations: 4 kB / 383.3 MB, free: 13.39 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.038e-05/0.006983, allocations: 37.39 kB / 383.4 MB, free: 13.35 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.242e-06/0.006984, allocations: 0 / 383.4 MB, free: 13.35 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.0008816/0.007866, allocations: 0.5766 MB / 383.9 MB, free: 12.71 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.69e-05/0.007893, allocations: 59.34 kB / 384 MB, free: 12.64 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.583e-05/0.007979, allocations: 184.4 kB / 384.2 MB, free: 12.44 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.306e-05/0.007992, allocations: 25.7 kB / 384.2 MB, free: 12.41 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.993e-05/0.008052, allocations: 167.2 kB / 384.4 MB, free: 12.24 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.834e-05/0.00809, allocations: 75.41 kB / 384.4 MB, free: 12.16 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.69e-05/0.008137, allocations: 39.33 kB / 384.5 MB, free: 12.12 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001146/0.008251, allocations: 0.4962 MB / 385 MB, free: 11.61 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.98e-05/0.008291, allocations: 19.98 kB / 385 MB, free: 11.59 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.487e-05/0.008356, allocations: 70.72 kB / 385.1 MB, free: 11.5 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001074/0.008463, allocations: 106.6 kB / 385.2 MB, free: 11.38 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.008465, allocations: 0 / 385.2 MB, free: 11.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.00022/0.008685, allocations: 173 kB / 385.3 MB, free: 11.2 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.008702, allocations: 8 kB / 385.3 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.008707, allocations: 0 / 385.3 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001365/0.008844, allocations: 39.66 kB / 385.4 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001103/0.008954, allocations: 39.92 kB / 385.4 MB, free: 11.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001098/0.01005, allocations: 2.114 MB / 387.5 MB, free: 8.883 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.408e-05/0.0101, allocations: 8 kB / 387.5 MB, free: 8.875 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.029e-05/0.01011, allocations: 4 kB / 387.5 MB, free: 8.871 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 8.58e-05/0.01019, allocations: 172.4 kB / 387.7 MB, free: 8.691 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.791e-05/0.01022, allocations: 19.91 kB / 387.7 MB, free: 8.672 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.453e-05/0.01024, allocations: 24.77 kB / 387.8 MB, free: 8.645 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.01025, allocations: 0 / 387.8 MB, free: 8.645 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.01025, allocations: 4 kB / 387.8 MB, free: 8.641 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.01025, allocations: 4.031 kB / 387.8 MB, free: 8.637 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004451/0.0107, allocations: 490.9 kB / 388.2 MB, free: 8.109 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.0107, allocations: 0 / 388.2 MB, free: 8.109 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.586e-05/0.0108, allocations: 35.98 kB / 388.3 MB, free: 8.074 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.377e-05/0.01088, allocations: 31.66 kB / 388.3 MB, free: 8.039 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.344e-05/0.01089, allocations: 4 kB / 388.3 MB, free: 8.035 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000793/0.01169, allocations: 1.807 MB / 390.1 MB, free: 6.109 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.01169, allocations: 0 / 390.1 MB, free: 6.109 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005575/0.01225, allocations: 342.4 kB / 390.5 MB, free: 5.75 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.09e-05/0.01226, allocations: 15.88 kB / 390.5 MB, free: 5.734 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.282e-05/0.01227, allocations: 8 kB / 390.5 MB, free: 5.727 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.471e-05/0.01231, allocations: 7.938 kB / 390.5 MB, free: 5.719 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.3e-05/0.01236, allocations: 23.81 kB / 390.5 MB, free: 5.695 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.432e-06/0.01236, allocations: 8.062 kB / 390.5 MB, free: 5.688 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.554e-05/0.01241, allocations: 135.2 kB / 390.6 MB, free: 5.555 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01241, allocations: 0 / 390.6 MB, free: 5.555 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002264/0.01264, allocations: 44 kB / 390.7 MB, free: 5.512 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 9.311e-05/0.01273, allocations: 95.25 kB / 390.8 MB, free: 5.406 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003465/0.01308, allocations: 281.3 kB / 391.1 MB, free: 5.109 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.01308, allocations: 8.062 kB / 391.1 MB, free: 5.102 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001566/0.01323, allocations: 241.3 kB / 391.3 MB, free: 4.844 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002394/0.01347, allocations: 23.92 kB / 391.3 MB, free: 4.82 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007465/0.01422, allocations: 370.7 kB / 391.7 MB, free: 4.422 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.948e-05/0.01428, allocations: 84.16 kB / 391.8 MB, free: 4.316 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.726e-05/0.01432, allocations: 13.47 kB / 391.8 MB, free: 4.305 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.382e-05/0.01435, allocations: 16.5 kB / 391.8 MB, free: 4.289 MB / 362.7 MB Notification: Performance of SimCode: time 1.042e-06/0.01435, allocations: 0 / 391.8 MB, free: 4.289 MB / 362.7 MB Notification: Performance of Templates: time 0.003589/0.01794, allocations: 1.628 MB / 393.4 MB, free: 2.68 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.274284461978823]