Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.00107/0.00107, allocations: 79.59 kB / 21.18 MB, free: 3.383 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.00191/0.00191, allocations: 161 kB / 24.55 MB, free: 16 kB / 18.57 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.023/1.023, allocations: 177.1 MB / 205 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3075/0.3075, allocations: 32.8 MB / 294.3 MB, free: 1.211 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.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.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 0 / 376 MB, free: 4.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.365e-05/3.516e-05, allocations: 5.547 kB / 376 MB, free: 4.676 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002784/0.002819, allocations: 1.961 MB / 378 MB, free: 2.699 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001084/0.003903, allocations: 0.5492 MB / 378.5 MB, free: 2.145 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001175/0.00402, allocations: 7.938 kB / 378.5 MB, free: 2.137 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001745/0.004195, allocations: 23.73 kB / 378.5 MB, free: 2.113 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001377/0.004332, allocations: 39.62 kB / 378.6 MB, free: 2.074 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003214/0.004654, allocations: 55.75 kB / 378.6 MB, free: 2.02 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002274/0.004881, allocations: 159.2 kB / 378.8 MB, free: 1.863 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001693/0.005051, allocations: 37.84 kB / 378.8 MB, free: 1.824 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002416/0.005292, allocations: 91.78 kB / 378.9 MB, free: 1.734 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001269/0.005419, allocations: 51.81 kB / 379 MB, free: 1.684 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.944e-05/0.005449, allocations: 12 kB / 379 MB, free: 1.672 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.944e-05/0.005518, allocations: 16 kB / 379 MB, free: 1.656 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.882e-05/0.005547, allocations: 27.91 kB / 379 MB, free: 1.629 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 6.662e-05/0.005613, allocations: 51.84 kB / 379.1 MB, free: 1.578 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002563/0.00587, allocations: 95.66 kB / 379.2 MB, free: 1.484 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.005875, allocations: 3.938 kB / 379.2 MB, free: 1.48 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.005877, allocations: 0 / 379.2 MB, free: 1.48 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.162e-06/0.005883, allocations: 4 kB / 379.2 MB, free: 1.477 MB / 346.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.0006066/0.00649, allocations: 479.9 kB / 379.6 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.887e-05/0.006539, allocations: 12.03 kB / 379.7 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001802/0.006719, allocations: 28.84 kB / 379.7 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002351/0.006954, allocations: 148.4 kB / 379.8 MB, free: 0.7617 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.967e-05/0.006974, allocations: 12.38 kB / 379.8 MB, free: 0.75 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.981e-05/0.007013, allocations: 16.38 kB / 379.9 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002338/0.007247, allocations: 114.9 kB / 380 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.007261, allocations: 4.188 kB / 380 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.795e-05/0.007279, allocations: 8.125 kB / 380 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.007289, allocations: 4 kB / 380 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001006/0.00739, allocations: 43.91 kB / 380 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006448/0.008035, allocations: 423.2 kB / 380.4 MB, free: 108 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002068/0.008242, allocations: 99.08 kB / 380.5 MB, free: 15.99 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.745e-05/0.008309, allocations: 39.59 kB / 380.6 MB, free: 15.95 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.745e-05/0.008327, allocations: 3.938 kB / 380.6 MB, free: 15.95 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.876e-05/0.008355, allocations: 45.39 kB / 380.6 MB, free: 15.89 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 2.605e-06/0.008358, allocations: 0 / 380.6 MB, free: 15.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.001115/0.009473, allocations: 0.5692 MB / 381.2 MB, free: 15.26 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.531e-05/0.009508, allocations: 59.34 kB / 381.2 MB, free: 15.19 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001141/0.009622, allocations: 189.4 kB / 381.4 MB, free: 14.99 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.451e-05/0.009637, allocations: 25.7 kB / 381.5 MB, free: 14.96 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.849e-05/0.009715, allocations: 163.2 kB / 381.6 MB, free: 14.79 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.862e-05/0.009764, allocations: 71.42 kB / 381.7 MB, free: 14.72 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.506e-05/0.009829, allocations: 51.31 kB / 381.7 MB, free: 14.66 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.009958, allocations: 0.4884 MB / 382.2 MB, free: 14.16 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.194e-05/0.01001, allocations: 23.98 kB / 382.2 MB, free: 14.14 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.282e-05/0.01008, allocations: 62.72 kB / 382.3 MB, free: 14.06 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001398/0.01022, allocations: 102.7 kB / 382.4 MB, free: 13.95 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.01022, allocations: 0 / 382.4 MB, free: 13.95 MB / 362.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002648/0.01049, allocations: 169 kB / 382.6 MB, free: 13.77 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.0105, allocations: 4 kB / 382.6 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.01051, allocations: 8.031 kB / 382.6 MB, free: 13.76 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001592/0.01067, allocations: 39.67 kB / 382.6 MB, free: 13.71 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001377/0.01081, allocations: 35.91 kB / 382.7 MB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001295/0.0121, allocations: 2.114 MB / 384.8 MB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.734e-05/0.01216, allocations: 16.02 kB / 384.8 MB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.131e-05/0.01217, allocations: 4 kB / 384.8 MB, free: 11.43 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.0001056/0.01228, allocations: 172.5 kB / 385 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.669e-05/0.01231, allocations: 15.91 kB / 385 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.954e-05/0.01234, allocations: 20.83 kB / 385 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.01235, allocations: 3.984 kB / 385 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.01235, allocations: 0 / 385 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.01236, allocations: 3.984 kB / 385 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005275/0.01288, allocations: 492.5 kB / 385.5 MB, free: 10.67 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.01289, allocations: 0 / 385.5 MB, free: 10.67 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001249/0.01301, allocations: 43.91 kB / 385.5 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.814e-05/0.01311, allocations: 23.67 kB / 385.6 MB, free: 10.6 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.385e-05/0.01312, allocations: 8 kB / 385.6 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009578/0.01408, allocations: 1.807 MB / 387.4 MB, free: 8.668 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.01408, allocations: 0 / 387.4 MB, free: 8.668 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000331/0.01442, allocations: 347.5 kB / 387.7 MB, free: 8.305 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.377e-05/0.01443, allocations: 11.89 kB / 387.7 MB, free: 8.293 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.48e-05/0.01444, allocations: 4 kB / 387.7 MB, free: 8.289 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.909e-05/0.01451, allocations: 11.94 kB / 387.7 MB, free: 8.277 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.671e-05/0.01456, allocations: 12.11 kB / 387.7 MB, free: 8.266 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.017e-05/0.01457, allocations: 8 kB / 387.8 MB, free: 8.258 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.801e-05/0.01463, allocations: 139.2 kB / 387.9 MB, free: 8.121 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01463, allocations: 4.062 kB / 387.9 MB, free: 8.117 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003189/0.01495, allocations: 36 kB / 387.9 MB, free: 8.082 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.0001174/0.01506, allocations: 107.2 kB / 388 MB, free: 7.965 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004234/0.01549, allocations: 284.3 kB / 388.3 MB, free: 7.668 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.01549, allocations: 4 kB / 388.3 MB, free: 7.664 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001896/0.01568, allocations: 249.5 kB / 388.6 MB, free: 7.398 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003151/0.016, allocations: 19.94 kB / 388.6 MB, free: 7.379 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009047/0.0169, allocations: 378.6 kB / 388.9 MB, free: 6.973 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.167e-05/0.01696, allocations: 76.22 kB / 389 MB, free: 6.875 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.398e-05/0.01701, allocations: 13.48 kB / 389 MB, free: 6.863 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.689e-05/0.01704, allocations: 16.5 kB / 389.1 MB, free: 6.848 MB / 362.7 MB Notification: Performance of SimCode: time 9.31e-07/0.01704, allocations: 0 / 389.1 MB, free: 6.848 MB / 362.7 MB Notification: Performance of Templates: time 0.004646/0.02169, allocations: 1.682 MB / 390.7 MB, free: 5.188 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.184458777308464]