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.001313/0.001313, allocations: 79.69 kB / 21.7 MB, free: 2.852 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.001509/0.001509, allocations: 165 kB / 24.99 MB, free: 8.801 MB / 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.135/1.135, allocations: 177 MB / 205.2 MB, free: 5.594 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.3487/0.3487, allocations: 34.86 MB / 296.6 MB, free: 0.5547 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.715e-06/2.715e-06, allocations: 0 / 378.7 MB, free: 2.445 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.323e-05/4.595e-05, allocations: 8.5 kB / 378.7 MB, free: 2.438 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.00445/0.004496, allocations: 1.961 MB / 380.7 MB, free: 472 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001281/0.005778, allocations: 0.5492 MB / 381.2 MB, free: 15.9 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001395/0.005917, allocations: 4 kB / 381.2 MB, free: 15.9 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000166/0.006083, allocations: 23.61 kB / 381.3 MB, free: 15.88 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001267/0.00621, allocations: 43.64 kB / 381.3 MB, free: 15.84 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003378/0.006548, allocations: 47.81 kB / 381.4 MB, free: 15.79 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002613/0.006809, allocations: 155.2 kB / 381.5 MB, free: 15.64 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002004/0.007009, allocations: 41.78 kB / 381.5 MB, free: 15.59 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004234/0.007433, allocations: 107.7 kB / 381.7 MB, free: 15.49 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001538/0.007587, allocations: 43.83 kB / 381.7 MB, free: 15.45 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 3.169e-05/0.007618, allocations: 12 kB / 381.7 MB, free: 15.43 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.312e-05/0.007681, allocations: 16 kB / 381.7 MB, free: 15.42 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 2.518e-05/0.007707, allocations: 27.89 kB / 381.8 MB, free: 15.39 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 5.639e-05/0.007763, allocations: 51.84 kB / 381.8 MB, free: 15.34 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002429/0.008006, allocations: 103.6 kB / 381.9 MB, free: 15.24 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.008013, allocations: 4 kB / 381.9 MB, free: 15.23 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.575e-06/0.008015, allocations: 0 / 381.9 MB, free: 15.23 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.954e-06/0.008022, allocations: 0 / 381.9 MB, free: 15.23 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.0005703/0.008592, allocations: 464 kB / 382.4 MB, free: 14.75 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.008637, allocations: 8.031 kB / 382.4 MB, free: 14.74 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001603/0.008797, allocations: 32.84 kB / 382.4 MB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002125/0.00901, allocations: 160.3 kB / 382.6 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.673e-05/0.009027, allocations: 16.34 kB / 382.6 MB, free: 14.51 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.291e-05/0.009059, allocations: 16.36 kB / 382.6 MB, free: 14.49 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002136/0.009273, allocations: 106.9 kB / 382.7 MB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/0.009288, allocations: 4.125 kB / 382.7 MB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.81e-05/0.009306, allocations: 16.12 kB / 382.7 MB, free: 14.36 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.009317, allocations: 4 kB / 382.7 MB, free: 14.36 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.827e-05/0.009405, allocations: 47.95 kB / 382.8 MB, free: 14.31 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005395/0.009945, allocations: 419.3 kB / 383.2 MB, free: 13.86 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001639/0.01011, allocations: 94.91 kB / 383.3 MB, free: 13.76 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.038e-05/0.01017, allocations: 35.67 kB / 383.3 MB, free: 13.72 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.923e-05/0.01019, allocations: 4 kB / 383.3 MB, free: 13.71 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.897e-05/0.01022, allocations: 37.64 kB / 383.3 MB, free: 13.67 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.253e-06/0.01022, allocations: 0 / 383.3 MB, free: 13.67 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.0009781/0.0112, allocations: 0.58 MB / 383.9 MB, free: 13.02 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.626e-05/0.01123, allocations: 55.34 kB / 384 MB, free: 12.96 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.713e-05/0.01133, allocations: 188 kB / 384.2 MB, free: 12.76 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.471e-05/0.01134, allocations: 29.7 kB / 384.2 MB, free: 12.72 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.938e-05/0.01141, allocations: 159.2 kB / 384.3 MB, free: 12.56 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.681e-05/0.01145, allocations: 63.44 kB / 384.4 MB, free: 12.5 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.921e-05/0.0115, allocations: 47.31 kB / 384.5 MB, free: 12.44 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.01164, allocations: 0.4962 MB / 384.9 MB, free: 11.93 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.634e-05/0.01168, allocations: 27.98 kB / 385 MB, free: 11.91 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.17e-05/0.01176, allocations: 62.72 kB / 385 MB, free: 11.83 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001139/0.01187, allocations: 98.67 kB / 385.1 MB, free: 11.71 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.01187, allocations: 0 / 385.1 MB, free: 11.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000223/0.01209, allocations: 177 kB / 385.3 MB, free: 11.53 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.01211, allocations: 4 kB / 385.3 MB, free: 11.53 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.01212, allocations: 0 / 385.3 MB, free: 11.53 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001576/0.01227, allocations: 43.69 kB / 385.4 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001158/0.01239, allocations: 35.97 kB / 385.4 MB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001146/0.01354, allocations: 2.118 MB / 387.5 MB, free: 9.211 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.75e-05/0.01357, allocations: 4 kB / 387.5 MB, free: 9.207 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.014e-05/0.01358, allocations: 8.031 kB / 387.5 MB, free: 9.199 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.786e-05/0.01367, allocations: 176.4 kB / 387.7 MB, free: 9.016 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.597e-05/0.0137, allocations: 23.91 kB / 387.7 MB, free: 8.992 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.148e-05/0.01372, allocations: 12.78 kB / 387.7 MB, free: 8.977 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.057e-06/0.01372, allocations: 7.984 kB / 387.7 MB, free: 8.969 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.01373, allocations: 0 / 387.7 MB, free: 8.969 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.01373, allocations: 0 / 387.7 MB, free: 8.969 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000443/0.01417, allocations: 0.4887 MB / 388.2 MB, free: 8.43 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.01417, allocations: 4 kB / 388.2 MB, free: 8.426 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.456e-05/0.01427, allocations: 27.98 kB / 388.3 MB, free: 8.398 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.379e-05/0.01436, allocations: 31.67 kB / 388.3 MB, free: 8.363 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.125e-05/0.01437, allocations: 3.984 kB / 388.3 MB, free: 8.359 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007843/0.01516, allocations: 1.803 MB / 390.1 MB, free: 6.438 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.01516, allocations: 4.062 kB / 390.1 MB, free: 6.434 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002532/0.01541, allocations: 350.1 kB / 390.4 MB, free: 6.066 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.817e-06/0.01542, allocations: 11.89 kB / 390.4 MB, free: 6.055 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.638e-06/0.01543, allocations: 0 / 390.4 MB, free: 6.055 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.597e-05/0.01548, allocations: 11.98 kB / 390.5 MB, free: 6.043 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.455e-05/0.01552, allocations: 19.83 kB / 390.5 MB, free: 6.023 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.516e-06/0.01553, allocations: 11.92 kB / 390.5 MB, free: 6.012 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.645e-05/0.01559, allocations: 137.4 kB / 390.6 MB, free: 5.879 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01559, allocations: 0 / 390.6 MB, free: 5.879 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002101/0.0158, allocations: 44.06 kB / 390.7 MB, free: 5.836 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.000108/0.01591, allocations: 95.25 kB / 390.8 MB, free: 5.73 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00034/0.01625, allocations: 285.3 kB / 391 MB, free: 5.43 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.01625, allocations: 0 / 391 MB, free: 5.43 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001411/0.01639, allocations: 243.8 kB / 391.3 MB, free: 5.172 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002534/0.01664, allocations: 28.05 kB / 391.3 MB, free: 5.145 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008029/0.01745, allocations: 374.5 kB / 391.7 MB, free: 4.742 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.968e-05/0.01749, allocations: 72.22 kB / 391.7 MB, free: 4.648 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.697e-05/0.01753, allocations: 13.48 kB / 391.8 MB, free: 4.637 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.596e-05/0.01757, allocations: 16.5 kB / 391.8 MB, free: 4.621 MB / 362.7 MB Notification: Performance of SimCode: time 1.112e-06/0.01757, allocations: 4 kB / 391.8 MB, free: 4.617 MB / 362.7 MB Notification: Performance of Templates: time 0.003827/0.0214, allocations: 1.626 MB / 393.4 MB, free: 3.008 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.7081238438840955]