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.001481/0.001481, allocations: 79.75 kB / 21.18 MB, free: 3.379 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.001541/0.001541, allocations: 161 kB / 24.56 MB, free: 12 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 0.9804/0.9804, allocations: 177.1 MB / 205 MB, free: 5.25 MB / 186.7 MB " [Timeout remaining time 179] 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.3065/0.3065, allocations: 34.26 MB / 295.7 MB, free: 0.7031 MB / 266.7 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 1.623e-06/1.623e-06, allocations: 0 / 378 MB, free: 2.703 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.985e-05/2.147e-05, allocations: 6.312 kB / 378 MB, free: 2.695 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002214/0.002236, allocations: 1.968 MB / 380 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007445/0.00298, allocations: 0.5569 MB / 380.5 MB, free: 156 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.157e-05/0.003062, allocations: 4 kB / 380.5 MB, free: 152 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001231/0.003185, allocations: 23.73 kB / 380.6 MB, free: 128 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.367e-05/0.003259, allocations: 43.62 kB / 380.6 MB, free: 84 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000216/0.003475, allocations: 43.88 kB / 380.7 MB, free: 40 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.000164/0.003639, allocations: 163.3 kB / 380.8 MB, free: 15.88 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001325/0.003771, allocations: 38.36 kB / 380.8 MB, free: 15.84 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001565/0.003928, allocations: 99.72 kB / 380.9 MB, free: 15.74 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.873e-05/0.004016, allocations: 47.88 kB / 381 MB, free: 15.69 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 2.276e-05/0.004039, allocations: 12 kB / 381 MB, free: 15.68 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.484e-05/0.004094, allocations: 20 kB / 381 MB, free: 15.66 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 2.253e-05/0.004117, allocations: 31.84 kB / 381.1 MB, free: 15.63 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 4.239e-05/0.004159, allocations: 43.91 kB / 381.1 MB, free: 15.59 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001679/0.004327, allocations: 107.6 kB / 381.2 MB, free: 15.48 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.405e-06/0.004329, allocations: 0 / 381.2 MB, free: 15.48 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.00433, allocations: 0 / 381.2 MB, free: 15.48 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.004334, allocations: 0 / 381.2 MB, free: 15.48 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.0004324/0.004767, allocations: 464 kB / 381.7 MB, free: 14.99 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.456e-05/0.004801, allocations: 16.03 kB / 381.7 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001132/0.004914, allocations: 32.83 kB / 381.7 MB, free: 14.95 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001677/0.005082, allocations: 152.4 kB / 381.9 MB, free: 14.77 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.236e-05/0.005094, allocations: 8.375 kB / 381.9 MB, free: 14.76 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.115e-05/0.005126, allocations: 16.38 kB / 381.9 MB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000168/0.005294, allocations: 122.8 kB / 382 MB, free: 14.62 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.005304, allocations: 192 / 382 MB, free: 14.62 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.345e-05/0.005318, allocations: 8.125 kB / 382 MB, free: 14.61 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.007e-06/0.005327, allocations: 4 kB / 382 MB, free: 14.61 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.692e-05/0.005404, allocations: 43.97 kB / 382.1 MB, free: 14.56 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000472/0.005876, allocations: 423.3 kB / 382.5 MB, free: 14.11 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001453/0.006021, allocations: 94.97 kB / 382.6 MB, free: 14.01 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.365e-05/0.006075, allocations: 39.66 kB / 382.6 MB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.834e-05/0.006093, allocations: 4 kB / 382.6 MB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.375e-05/0.006117, allocations: 37.39 kB / 382.6 MB, free: 13.91 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.142e-06/0.006118, allocations: 0 / 382.6 MB, free: 13.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.0008565/0.006974, allocations: 0.5758 MB / 383.2 MB, free: 13.28 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.257e-05/0.007007, allocations: 59.34 kB / 383.3 MB, free: 13.21 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.351e-05/0.00709, allocations: 181.9 kB / 383.4 MB, free: 13.01 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.127e-05/0.007102, allocations: 29.7 kB / 383.5 MB, free: 12.98 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.267e-05/0.007164, allocations: 167.1 kB / 383.6 MB, free: 12.8 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.373e-05/0.007198, allocations: 63.44 kB / 383.7 MB, free: 12.74 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.557e-05/0.007244, allocations: 51.25 kB / 383.8 MB, free: 12.68 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.007356, allocations: 0.4884 MB / 384.2 MB, free: 12.18 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.894e-05/0.007395, allocations: 23.98 kB / 384.3 MB, free: 12.16 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.157e-05/0.007456, allocations: 73.91 kB / 384.3 MB, free: 12.07 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001076/0.007564, allocations: 98.67 kB / 384.4 MB, free: 11.96 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.007565, allocations: 4 kB / 384.4 MB, free: 11.96 MB / 362.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002078/0.007773, allocations: 165.1 kB / 384.6 MB, free: 11.79 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.007786, allocations: 7.984 kB / 384.6 MB, free: 11.78 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.007793, allocations: 7.938 kB / 384.6 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001465/0.007939, allocations: 43.64 kB / 384.7 MB, free: 11.72 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001123/0.008052, allocations: 31.97 kB / 384.7 MB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001141/0.009193, allocations: 2.11 MB / 386.8 MB, free: 9.465 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.923e-05/0.009232, allocations: 8 kB / 386.8 MB, free: 9.457 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.278e-05/0.009245, allocations: 11.98 kB / 386.8 MB, free: 9.445 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 9.75e-05/0.009342, allocations: 180.4 kB / 387 MB, free: 9.258 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.825e-05/0.00937, allocations: 19.91 kB / 387 MB, free: 9.238 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.295e-05/0.009393, allocations: 12.78 kB / 387 MB, free: 9.223 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-06/0.009394, allocations: 4 kB / 387 MB, free: 9.219 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.009398, allocations: 0 / 387 MB, free: 9.219 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.009402, allocations: 0 / 387 MB, free: 9.219 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004524/0.009855, allocations: 0.4888 MB / 387.5 MB, free: 8.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.009857, allocations: 0 / 387.5 MB, free: 8.68 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001043/0.009961, allocations: 40 kB / 387.6 MB, free: 8.641 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.903e-05/0.01005, allocations: 31.61 kB / 387.6 MB, free: 8.605 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.124e-05/0.01006, allocations: 4 kB / 387.6 MB, free: 8.602 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008261/0.01089, allocations: 1.799 MB / 389.4 MB, free: 6.684 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.01089, allocations: 0 / 389.4 MB, free: 6.684 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002872/0.01118, allocations: 350.9 kB / 389.7 MB, free: 6.312 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.818e-06/0.01119, allocations: 11.89 kB / 389.7 MB, free: 6.301 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.007e-05/0.0112, allocations: 0 / 389.7 MB, free: 6.301 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.613e-05/0.01124, allocations: 8 kB / 389.8 MB, free: 6.293 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.657e-05/0.01129, allocations: 15.97 kB / 389.8 MB, free: 6.277 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.893e-06/0.0113, allocations: 4 kB / 389.8 MB, free: 6.273 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.718e-05/0.01135, allocations: 142.5 kB / 389.9 MB, free: 6.137 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01135, allocations: 0 / 389.9 MB, free: 6.137 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002153/0.01157, allocations: 36 kB / 389.9 MB, free: 6.102 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.0001016/0.01167, allocations: 103.3 kB / 390 MB, free: 5.988 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003727/0.01204, allocations: 285.4 kB / 390.3 MB, free: 5.688 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.263e-06/0.01204, allocations: 3.938 kB / 390.3 MB, free: 5.684 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001571/0.0122, allocations: 253.3 kB / 390.6 MB, free: 5.414 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002476/0.01245, allocations: 38.95 kB / 390.6 MB, free: 5.383 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007551/0.0132, allocations: 380.5 kB / 391 MB, free: 4.977 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.029e-05/0.01325, allocations: 76.22 kB / 391.1 MB, free: 4.879 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.224e-05/0.01329, allocations: 5.5 kB / 391.1 MB, free: 4.875 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.522e-05/0.01332, allocations: 20.48 kB / 391.1 MB, free: 4.855 MB / 362.7 MB Notification: Performance of SimCode: time 6.41e-07/0.01332, allocations: 0 / 391.1 MB, free: 4.855 MB / 362.7 MB Notification: Performance of Templates: time 0.003452/0.01677, allocations: 1.619 MB / 392.7 MB, free: 3.25 MB / 362.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 240] 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","",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.2354965531267226]