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.001064/0.001064, allocations: 91.5 kB / 21.2 MB, free: 3.375 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.00115/0.00115, allocations: 156.5 kB / 24.55 MB, free: 20 kB / 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 0.9946/0.9946, allocations: 177 MB / 204.8 MB, free: 5.598 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.3096/0.3096, allocations: 34.87 MB / 296.3 MB, free: 460 kB / 266.7 MB " [Timeout remaining time 180] 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.093e-06/2.093e-06, allocations: 0 / 378.7 MB, free: 2.07 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.458e-05/2.667e-05, allocations: 3.016 kB / 378.7 MB, free: 2.066 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003675/0.003702, allocations: 1.964 MB / 380.7 MB, free: 92 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00134/0.005041, allocations: 0.5531 MB / 381.3 MB, free: 15.53 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001581/0.005199, allocations: 0 / 381.3 MB, free: 15.53 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001788/0.005378, allocations: 23.8 kB / 381.3 MB, free: 15.51 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001565/0.005535, allocations: 43.56 kB / 381.3 MB, free: 15.46 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003727/0.005907, allocations: 51.81 kB / 381.4 MB, free: 15.41 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003048/0.006212, allocations: 155.2 kB / 381.5 MB, free: 15.26 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002/0.006412, allocations: 45.83 kB / 381.6 MB, free: 15.21 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002816/0.006694, allocations: 95.72 kB / 381.7 MB, free: 15.12 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001305/0.006824, allocations: 55.83 kB / 381.7 MB, free: 15.07 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 2.898e-05/0.006853, allocations: 8 kB / 381.7 MB, free: 15.06 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.745e-05/0.006931, allocations: 19.98 kB / 381.8 MB, free: 15.04 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 3.337e-05/0.006964, allocations: 23.92 kB / 381.8 MB, free: 15.02 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 6.403e-05/0.007028, allocations: 47.91 kB / 381.8 MB, free: 14.97 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000246/0.007274, allocations: 103.6 kB / 381.9 MB, free: 14.87 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.007278, allocations: 4 kB / 381.9 MB, free: 14.86 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.007279, allocations: 0 / 381.9 MB, free: 14.86 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.007285, allocations: 0 / 381.9 MB, free: 14.86 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.0006356/0.00792, allocations: 460 kB / 382.4 MB, free: 14.38 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.079e-05/0.007971, allocations: 16.03 kB / 382.4 MB, free: 14.36 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001954/0.008166, allocations: 32.83 kB / 382.4 MB, free: 14.33 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002481/0.008415, allocations: 160.4 kB / 382.6 MB, free: 14.15 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.988e-05/0.008434, allocations: 16.36 kB / 382.6 MB, free: 14.13 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.03e-05/0.008475, allocations: 12.38 kB / 382.6 MB, free: 14.12 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002488/0.008724, allocations: 106.9 kB / 382.7 MB, free: 14.01 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.736e-05/0.008741, allocations: 8.109 kB / 382.7 MB, free: 14 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.907e-05/0.00876, allocations: 8.125 kB / 382.7 MB, free: 13.99 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.306e-05/0.008773, allocations: 7.984 kB / 382.7 MB, free: 13.98 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001011/0.008874, allocations: 43.97 kB / 382.8 MB, free: 13.94 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005791/0.009453, allocations: 423.3 kB / 383.2 MB, free: 13.49 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001497/0.009603, allocations: 90.97 kB / 383.3 MB, free: 13.39 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.463e-05/0.009658, allocations: 39.67 kB / 383.3 MB, free: 13.35 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.43e-05/0.009672, allocations: 0 / 383.3 MB, free: 13.35 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.477e-05/0.009697, allocations: 41.38 kB / 383.4 MB, free: 13.3 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.082e-06/0.009698, allocations: 3.938 kB / 383.4 MB, free: 13.29 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.001016/0.01071, allocations: 0.5803 MB / 383.9 MB, free: 12.65 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.705e-05/0.01075, allocations: 59.34 kB / 384 MB, free: 12.58 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000106/0.01086, allocations: 184.2 kB / 384.2 MB, free: 12.39 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.437e-05/0.01087, allocations: 25.7 kB / 384.2 MB, free: 12.36 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.808e-05/0.01095, allocations: 167.1 kB / 384.4 MB, free: 12.18 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.472e-05/0.01099, allocations: 67.44 kB / 384.4 MB, free: 12.12 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.941e-05/0.01105, allocations: 43.31 kB / 384.5 MB, free: 12.07 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.0112, allocations: 0.4962 MB / 385 MB, free: 11.56 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.221e-05/0.01124, allocations: 15.98 kB / 385 MB, free: 11.54 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.784e-05/0.01131, allocations: 70.73 kB / 385.1 MB, free: 11.46 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001119/0.01142, allocations: 102.7 kB / 385.2 MB, free: 11.34 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.01142, allocations: 0 / 385.2 MB, free: 11.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002323/0.01165, allocations: 169 kB / 385.3 MB, free: 11.16 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.01167, allocations: 4 kB / 385.3 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.01168, allocations: 4 kB / 385.3 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001546/0.01183, allocations: 43.69 kB / 385.4 MB, free: 11.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001281/0.01196, allocations: 35.92 kB / 385.4 MB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00138/0.01334, allocations: 2.118 MB / 387.5 MB, free: 8.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.786e-05/0.0134, allocations: 8 kB / 387.5 MB, free: 8.832 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.25e-05/0.01341, allocations: 4 kB / 387.5 MB, free: 8.828 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.0001225/0.01353, allocations: 176.4 kB / 387.7 MB, free: 8.645 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.394e-05/0.01357, allocations: 23.89 kB / 387.7 MB, free: 8.621 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.881e-05/0.0136, allocations: 20.78 kB / 387.8 MB, free: 8.598 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.0136, allocations: 0 / 387.8 MB, free: 8.598 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.01361, allocations: 4 kB / 387.8 MB, free: 8.594 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.01361, allocations: 0 / 387.8 MB, free: 8.594 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004765/0.01409, allocations: 492.4 kB / 388.2 MB, free: 8.062 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.01409, allocations: 0 / 388.2 MB, free: 8.062 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.777e-05/0.01419, allocations: 40.02 kB / 388.3 MB, free: 8.023 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.569e-05/0.01429, allocations: 27.66 kB / 388.3 MB, free: 7.992 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.294e-05/0.0143, allocations: 8 kB / 388.3 MB, free: 7.984 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008705/0.01517, allocations: 1.803 MB / 390.1 MB, free: 6.062 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.542e-06/0.01517, allocations: 0 / 390.1 MB, free: 6.062 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002739/0.01544, allocations: 343 kB / 390.5 MB, free: 5.699 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.163e-05/0.01546, allocations: 11.89 kB / 390.5 MB, free: 5.688 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.414e-05/0.01547, allocations: 8 kB / 390.5 MB, free: 5.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.365e-05/0.01551, allocations: 4 kB / 390.5 MB, free: 5.676 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.976e-05/0.01556, allocations: 23.81 kB / 390.5 MB, free: 5.652 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.921e-06/0.01557, allocations: 4 kB / 390.5 MB, free: 5.648 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.268e-05/0.01563, allocations: 139.2 kB / 390.6 MB, free: 5.512 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01563, allocations: 0 / 390.6 MB, free: 5.512 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002394/0.01587, allocations: 44 kB / 390.7 MB, free: 5.469 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.01599, allocations: 99.22 kB / 390.8 MB, free: 5.359 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004214/0.01641, allocations: 285.3 kB / 391.1 MB, free: 5.059 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.01641, allocations: 0 / 391.1 MB, free: 5.059 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001555/0.01657, allocations: 245.3 kB / 391.3 MB, free: 4.797 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002504/0.01682, allocations: 33.61 kB / 391.3 MB, free: 4.77 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008016/0.01762, allocations: 378.6 kB / 391.7 MB, free: 4.363 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.304e-05/0.01767, allocations: 72.23 kB / 391.8 MB, free: 4.27 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.733e-05/0.01771, allocations: 9.484 kB / 391.8 MB, free: 4.262 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.473e-05/0.01775, allocations: 16.5 kB / 391.8 MB, free: 4.246 MB / 362.7 MB Notification: Performance of SimCode: time 9.32e-07/0.01775, allocations: 0 / 391.8 MB, free: 4.246 MB / 362.7 MB Notification: Performance of Templates: time 0.00388/0.02163, allocations: 1.688 MB / 393.5 MB, free: 2.578 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.101217957213521]