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.001117/0.001117, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001039/0.001039, allocations: 165.7 kB / 24.99 MB, free: 8.789 MB / 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.028/1.028, allocations: 177.1 MB / 205.3 MB, free: 5.652 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.2958/0.2958, allocations: 32.8 MB / 294.6 MB, free: 1.184 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.663e-06/1.663e-06, allocations: 0 / 376 MB, free: 5.008 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.654e-05/1.82e-05, allocations: 2.312 kB / 376 MB, free: 5.004 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002695/0.002714, allocations: 1.965 MB / 377.9 MB, free: 3.023 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008347/0.003548, allocations: 0.5414 MB / 378.5 MB, free: 2.477 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9e-05/0.003638, allocations: 3.938 kB / 378.5 MB, free: 2.473 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001179/0.003756, allocations: 23.78 kB / 378.5 MB, free: 2.449 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 8.522e-05/0.003841, allocations: 47.56 kB / 378.6 MB, free: 2.402 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002162/0.004057, allocations: 43.89 kB / 378.6 MB, free: 2.359 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001886/0.004246, allocations: 163.1 kB / 378.8 MB, free: 2.199 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001384/0.004384, allocations: 41.84 kB / 378.8 MB, free: 2.156 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001772/0.004562, allocations: 99.78 kB / 378.9 MB, free: 2.059 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.347e-05/0.004655, allocations: 47.88 kB / 379 MB, free: 2.012 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.459e-05/0.00468, allocations: 12 kB / 379 MB, free: 2 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.653e-05/0.004726, allocations: 12 kB / 379 MB, free: 1.988 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.59e-05/0.004752, allocations: 27.86 kB / 379 MB, free: 1.961 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 5.388e-05/0.004806, allocations: 51.89 kB / 379.1 MB, free: 1.91 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002038/0.00501, allocations: 107.6 kB / 379.2 MB, free: 1.805 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.005012, allocations: 0 / 379.2 MB, free: 1.805 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.005013, allocations: 0 / 379.2 MB, free: 1.805 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.168e-06/0.005017, allocations: 0 / 379.2 MB, free: 1.805 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.0005268/0.005544, allocations: 475.9 kB / 379.6 MB, free: 1.305 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.00558, allocations: 8.031 kB / 379.6 MB, free: 1.297 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001328/0.005713, allocations: 32.84 kB / 379.7 MB, free: 1.266 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001906/0.005903, allocations: 152.4 kB / 379.8 MB, free: 1.09 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.483e-05/0.005918, allocations: 12.38 kB / 379.8 MB, free: 1.078 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.576e-05/0.005944, allocations: 12.38 kB / 379.8 MB, free: 1.066 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000192/0.006136, allocations: 114.9 kB / 379.9 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.006148, allocations: 192 / 379.9 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.694e-05/0.006165, allocations: 12.12 kB / 380 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.976e-06/0.006174, allocations: 4 kB / 380 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.701e-05/0.006271, allocations: 39.97 kB / 380 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005279/0.006799, allocations: 431.2 kB / 380.4 MB, free: 444 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001533/0.006952, allocations: 87.03 kB / 380.5 MB, free: 344 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.006e-05/0.007022, allocations: 39.67 kB / 380.5 MB, free: 300 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.319e-05/0.007035, allocations: 0 / 380.5 MB, free: 300 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.257e-05/0.007058, allocations: 41.33 kB / 380.6 MB, free: 248 kB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 1.242e-06/0.007059, allocations: 0 / 380.6 MB, free: 248 kB / 346.7 MB Notification: Performance of matching and sorting (n=19): time 0.001018/0.008077, allocations: 0.5805 MB / 381.2 MB, free: 15.6 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.835e-05/0.008106, allocations: 55.34 kB / 381.2 MB, free: 15.54 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001003/0.008206, allocations: 181.9 kB / 381.4 MB, free: 15.34 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.704e-05/0.008223, allocations: 33.7 kB / 381.4 MB, free: 15.3 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.932e-05/0.008292, allocations: 159.2 kB / 381.6 MB, free: 15.14 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.244e-05/0.008335, allocations: 63.44 kB / 381.7 MB, free: 15.07 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.553e-05/0.00839, allocations: 51.25 kB / 381.7 MB, free: 15.02 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.008516, allocations: 0.5 MB / 382.2 MB, free: 14.5 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.635e-05/0.008563, allocations: 19.98 kB / 382.2 MB, free: 14.48 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.65e-05/0.008639, allocations: 70.72 kB / 382.3 MB, free: 14.4 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001323/0.008771, allocations: 102.7 kB / 382.4 MB, free: 14.28 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.008773, allocations: 0 / 382.4 MB, free: 14.28 MB / 362.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002544/0.009027, allocations: 165.1 kB / 382.6 MB, free: 14.11 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.009042, allocations: 8 kB / 382.6 MB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.72e-06/0.009047, allocations: 3.938 kB / 382.6 MB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001491/0.009196, allocations: 43.77 kB / 382.6 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001265/0.009323, allocations: 39.97 kB / 382.6 MB, free: 14.01 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001188/0.01051, allocations: 2.118 MB / 384.8 MB, free: 11.78 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.662e-05/0.01056, allocations: 4 kB / 384.8 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.059e-05/0.01057, allocations: 8 kB / 384.8 MB, free: 11.77 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.928e-05/0.01066, allocations: 172.5 kB / 384.9 MB, free: 11.59 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.588e-05/0.01069, allocations: 19.91 kB / 385 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.375e-05/0.01072, allocations: 16.78 kB / 385 MB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-06/0.01072, allocations: 0 / 385 MB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.01072, allocations: 4 kB / 385 MB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.01073, allocations: 3.984 kB / 385 MB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005013/0.01123, allocations: 490.3 kB / 385.5 MB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.01123, allocations: 4.219 kB / 385.5 MB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001208/0.01135, allocations: 43.91 kB / 385.5 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.45e-05/0.01143, allocations: 31.67 kB / 385.5 MB, free: 10.93 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.172e-05/0.01145, allocations: 4 kB / 385.5 MB, free: 10.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008439/0.01229, allocations: 1.803 MB / 387.3 MB, free: 9.004 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.01229, allocations: 4.031 kB / 387.4 MB, free: 9 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002989/0.01259, allocations: 348.6 kB / 387.7 MB, free: 8.637 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.144e-05/0.0126, allocations: 11.89 kB / 387.7 MB, free: 8.625 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.425e-05/0.01262, allocations: 8 kB / 387.7 MB, free: 8.617 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.473e-05/0.01268, allocations: 0 / 387.7 MB, free: 8.617 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.306e-05/0.01272, allocations: 19.97 kB / 387.7 MB, free: 8.598 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.926e-06/0.01273, allocations: 4 kB / 387.7 MB, free: 8.594 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.477e-05/0.01279, allocations: 135.2 kB / 387.9 MB, free: 8.461 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01279, allocations: 0 / 387.9 MB, free: 8.461 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003079/0.0131, allocations: 47.98 kB / 387.9 MB, free: 8.414 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 8.262e-05/0.01318, allocations: 99.22 kB / 388 MB, free: 8.305 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003469/0.01353, allocations: 289.3 kB / 388.3 MB, free: 8 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.01353, allocations: 0 / 388.3 MB, free: 8 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001695/0.0137, allocations: 237.3 kB / 388.5 MB, free: 7.746 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002866/0.01398, allocations: 30.67 kB / 388.6 MB, free: 7.719 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007495/0.01473, allocations: 382.7 kB / 388.9 MB, free: 7.309 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.742e-05/0.01479, allocations: 76.22 kB / 389 MB, free: 7.211 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.111e-05/0.01483, allocations: 17.47 kB / 389 MB, free: 7.195 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.215e-05/0.01486, allocations: 16.5 kB / 389 MB, free: 7.18 MB / 362.7 MB Notification: Performance of SimCode: time 6.61e-07/0.01486, allocations: 0 / 389 MB, free: 7.18 MB / 362.7 MB Notification: Performance of Templates: time 0.003847/0.01871, allocations: 1.614 MB / 390.7 MB, free: 5.582 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.2679406870156527]