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.001517/0.001517, allocations: 81.08 kB / 20.65 MB, free: 3.84 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.002081/0.002081, allocations: 173.4 kB / 24.05 MB, free: 456 kB / 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 1.089/1.089, allocations: 158.6 MB / 186 MB, free: 2.801 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.1632/0.1632, allocations: 32.37 MB / 270.7 MB, free: 14.54 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: translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.325e-06/2.325e-06, allocations: 0 / 348.1 MB, free: 9.207 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.176e-05/3.409e-05, allocations: 4.281 kB / 348.1 MB, free: 9.203 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002843/0.002877, allocations: 1.941 MB / 350 MB, free: 7.25 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001072/0.003949, allocations: 0.519 MB / 350.6 MB, free: 6.723 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001435/0.004093, allocations: 4 kB / 350.6 MB, free: 6.719 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001806/0.004273, allocations: 23.78 kB / 350.6 MB, free: 6.695 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001145/0.004388, allocations: 43.58 kB / 350.6 MB, free: 6.652 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000272/0.00466, allocations: 39.88 kB / 350.7 MB, free: 6.613 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002243/0.004884, allocations: 151.2 kB / 350.8 MB, free: 6.465 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001963/0.00508, allocations: 45.83 kB / 350.9 MB, free: 6.418 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002307/0.005311, allocations: 91.8 kB / 351 MB, free: 6.328 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001331/0.005444, allocations: 51.81 kB / 351 MB, free: 6.277 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.264e-05/0.005477, allocations: 12 kB / 351 MB, free: 6.266 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.073e-05/0.005498, allocations: 12 kB / 351 MB, free: 6.254 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.728e-05/0.005535, allocations: 23.92 kB / 351.1 MB, free: 6.23 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.994e-05/0.005595, allocations: 51.83 kB / 351.1 MB, free: 6.18 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002433/0.005838, allocations: 91.66 kB / 351.2 MB, free: 6.09 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.005842, allocations: 0 / 351.2 MB, free: 6.09 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.005844, allocations: 0 / 351.2 MB, free: 6.09 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.244e-06/0.005851, allocations: 4 kB / 351.2 MB, free: 6.086 MB / 282.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.0004674/0.006318, allocations: 464 kB / 351.7 MB, free: 5.598 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/0.006369, allocations: 12.02 kB / 351.7 MB, free: 5.586 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.087e-05/0.00642, allocations: 28.84 kB / 351.7 MB, free: 5.559 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001785/0.006598, allocations: 140.4 kB / 351.8 MB, free: 5.395 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.741e-05/0.006615, allocations: 16.36 kB / 351.8 MB, free: 5.379 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.049e-05/0.006656, allocations: 16.36 kB / 351.9 MB, free: 5.363 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001694/0.006825, allocations: 106.8 kB / 352 MB, free: 5.25 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.006837, allocations: 192 / 352 MB, free: 5.25 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.426e-05/0.006851, allocations: 8.125 kB / 352 MB, free: 5.242 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/0.00686, allocations: 8 kB / 352 MB, free: 5.234 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.898e-05/0.006919, allocations: 43.94 kB / 352 MB, free: 5.191 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004737/0.007393, allocations: 395.8 kB / 352.4 MB, free: 4.777 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001311/0.007524, allocations: 94.89 kB / 352.5 MB, free: 4.672 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.892e-05/0.007563, allocations: 31.67 kB / 352.5 MB, free: 4.637 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.097e-05/0.007584, allocations: 4 kB / 352.5 MB, free: 4.633 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.151e-05/0.007605, allocations: 33.39 kB / 352.6 MB, free: 4.59 MB / 282.7 MB Notification: Performance of pre-optimization done (n=13): time 1.523e-06/0.007607, allocations: 0 / 352.6 MB, free: 4.59 MB / 282.7 MB Notification: Performance of matching and sorting (n=19): time 0.0008514/0.008458, allocations: 0.5397 MB / 353.1 MB, free: 3.988 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.492e-05/0.008483, allocations: 55.41 kB / 353.2 MB, free: 3.922 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.627e-05/0.008549, allocations: 181.8 kB / 353.3 MB, free: 3.727 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.837e-06/0.008558, allocations: 29.7 kB / 353.4 MB, free: 3.691 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.468e-05/0.008613, allocations: 167.1 kB / 353.5 MB, free: 3.523 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.103e-05/0.008644, allocations: 67.42 kB / 353.6 MB, free: 3.457 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.628e-05/0.00869, allocations: 43.34 kB / 353.6 MB, free: 3.406 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.475e-05/0.008755, allocations: 0.4923 MB / 354.1 MB, free: 2.902 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3e-05/0.008785, allocations: 19.98 kB / 354.2 MB, free: 2.883 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.05e-05/0.008835, allocations: 62.7 kB / 354.2 MB, free: 2.805 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.676e-05/0.008912, allocations: 90.66 kB / 354.3 MB, free: 2.699 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.008915, allocations: 4 kB / 354.3 MB, free: 2.695 MB / 282.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001998/0.009114, allocations: 165 kB / 354.5 MB, free: 2.523 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.197e-05/0.009136, allocations: 8 kB / 354.5 MB, free: 2.516 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.009146, allocations: 0 / 354.5 MB, free: 2.516 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001245/0.00927, allocations: 43.64 kB / 354.5 MB, free: 2.469 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001081/0.009378, allocations: 31.97 kB / 354.6 MB, free: 2.438 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008457/0.01022, allocations: 2.084 MB / 356.6 MB, free: 252 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.726e-05/0.01027, allocations: 12 kB / 356.6 MB, free: 240 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.764e-06/0.01028, allocations: 0 / 356.6 MB, free: 240 kB / 282.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.792e-05/0.01035, allocations: 176.5 kB / 356.8 MB, free: 52 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.505e-05/0.01037, allocations: 23.92 kB / 356.8 MB, free: 28 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.3e-05/0.0104, allocations: 16.78 kB / 356.9 MB, free: 4 kB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.0104, allocations: 4 kB / 356.9 MB, free: 0 / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.0104, allocations: 0 / 356.9 MB, free: 0 / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.01041, allocations: 0 / 356.9 MB, free: 0 / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004743/0.01088, allocations: 459.3 kB / 357.3 MB, free: 15.51 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.01088, allocations: 0 / 357.3 MB, free: 15.51 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.195e-05/0.01097, allocations: 36.02 kB / 357.3 MB, free: 15.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.551e-05/0.01107, allocations: 35.59 kB / 357.4 MB, free: 15.44 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.021e-05/0.01108, allocations: 7.938 kB / 357.4 MB, free: 15.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008231/0.0119, allocations: 1.776 MB / 359.2 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.01191, allocations: 0 / 359.2 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000271/0.01218, allocations: 323.4 kB / 359.5 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.224e-05/0.01219, allocations: 12.05 kB / 359.5 MB, free: 13.19 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.528e-05/0.0122, allocations: 11.97 kB / 359.5 MB, free: 13.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.629e-05/0.01225, allocations: 4 kB / 359.5 MB, free: 13.17 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.371e-05/0.01229, allocations: 23.84 kB / 359.5 MB, free: 13.15 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.943e-06/0.0123, allocations: 4 kB / 359.5 MB, free: 13.14 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000338/0.01264, allocations: 137.5 kB / 359.7 MB, free: 13.01 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.1e-08/0.01264, allocations: 0 / 359.7 MB, free: 13.01 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002193/0.01286, allocations: 36 kB / 359.7 MB, free: 12.98 MB / 298.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.336e-05/0.01295, allocations: 99.28 kB / 359.8 MB, free: 12.87 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002732/0.01322, allocations: 292.2 kB / 360.1 MB, free: 12.57 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.634e-06/0.01323, allocations: 0 / 360.1 MB, free: 12.57 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001402/0.01337, allocations: 233.4 kB / 360.3 MB, free: 12.32 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002357/0.0136, allocations: 24.23 kB / 360.3 MB, free: 12.29 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006989/0.0143, allocations: 388.1 kB / 360.7 MB, free: 11.88 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.059e-05/0.01435, allocations: 72.06 kB / 360.8 MB, free: 11.79 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.7e-05/0.01439, allocations: 13.48 kB / 360.8 MB, free: 11.78 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.539e-05/0.01446, allocations: 86.19 kB / 360.9 MB, free: 11.7 MB / 298.7 MB Notification: Performance of SimCode: time 8.41e-07/0.01447, allocations: 4 kB / 360.9 MB, free: 11.69 MB / 298.7 MB Notification: Performance of Templates: time 0.003892/0.01836, allocations: 1.743 MB / 362.6 MB, free: 9.969 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile [Timeout 660] (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 & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 240] 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","",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.2561346078291535]