Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.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.0009006/0.0009006, 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.0009357/0.0009357, allocations: 160.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 1.009/1.009, allocations: 177 MB / 204.8 MB, free: 5.57 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.2776/0.2776, allocations: 34.87 MB / 296.3 MB, free: 0.5391 MB / 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.Electrical.Machines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|dcpm.iA|dcpm.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled") translateModel(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|dcpm.iA|dcpm.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 378.7 MB, free: 2.125 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.048e-05/3.217e-05, allocations: 4.281 kB / 378.7 MB, free: 2.121 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled): time 0.006019/0.006052, allocations: 3.984 MB / 382.7 MB, free: 14.11 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.003112/0.009163, allocations: 1.46 MB / 384.2 MB, free: 12.64 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003894/0.009553, allocations: 15.88 kB / 384.2 MB, free: 12.62 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007726/0.01033, allocations: 242.2 kB / 384.4 MB, free: 12.39 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000347/0.01067, allocations: 154.7 kB / 384.6 MB, free: 12.23 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000627/0.0113, allocations: 195.6 kB / 384.8 MB, free: 12.04 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007523/0.01205, allocations: 0.6504 MB / 385.4 MB, free: 11.39 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003547/0.01241, allocations: 180.7 kB / 385.6 MB, free: 11.21 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005824/0.01299, allocations: 363.1 kB / 386 MB, free: 10.86 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003132/0.0133, allocations: 191.4 kB / 386.1 MB, free: 10.67 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 8.428e-05/0.01339, allocations: 67.94 kB / 386.2 MB, free: 10.6 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.826e-05/0.01346, allocations: 60 kB / 386.3 MB, free: 10.54 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 9.203e-05/0.01356, allocations: 139.5 kB / 386.4 MB, free: 10.41 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001753/0.01373, allocations: 191.4 kB / 386.6 MB, free: 10.22 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005676/0.0143, allocations: 410.5 kB / 387 MB, free: 9.816 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.954e-06/0.0143, allocations: 0 / 387 MB, free: 9.816 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.0143, allocations: 0 / 387 MB, free: 9.816 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.008e-05/0.01431, allocations: 3.938 kB / 387 MB, free: 9.812 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: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.001166/0.01548, allocations: 0.8813 MB / 387.9 MB, free: 8.895 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.01552, allocations: 8.031 kB / 387.9 MB, free: 8.887 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001494/0.01567, allocations: 100.5 kB / 388 MB, free: 8.789 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007328/0.0164, allocations: 352.1 kB / 388.3 MB, free: 8.418 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.186e-05/0.01644, allocations: 41.38 kB / 388.4 MB, free: 8.379 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.634e-05/0.01651, allocations: 52.33 kB / 388.4 MB, free: 8.328 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006018/0.01711, allocations: 420.2 kB / 388.8 MB, free: 7.883 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.24e-05/0.01714, allocations: 4.188 kB / 388.8 MB, free: 7.879 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.574e-05/0.01717, allocations: 16.38 kB / 388.9 MB, free: 7.863 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.548e-05/0.01719, allocations: 11.94 kB / 388.9 MB, free: 7.852 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000349/0.01754, allocations: 165.8 kB / 389 MB, free: 7.691 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001994/0.01953, allocations: 1.521 MB / 390.6 MB, free: 6.094 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004985/0.02003, allocations: 199 kB / 390.7 MB, free: 5.887 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001162/0.02015, allocations: 67.64 kB / 390.8 MB, free: 5.816 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.662e-05/0.02017, allocations: 4 kB / 390.8 MB, free: 5.812 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.06e-05/0.0202, allocations: 37.39 kB / 390.9 MB, free: 5.766 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.303e-06/0.0202, allocations: 0 / 390.9 MB, free: 5.766 MB / 362.7 MB Notification: Performance of matching and sorting (n=25): time 0.001124/0.02133, allocations: 0.5677 MB / 391.4 MB, free: 5.16 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.249e-05/0.02136, allocations: 55.41 kB / 391.5 MB, free: 5.094 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003841/0.02175, allocations: 410.6 kB / 391.9 MB, free: 4.68 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.194e-05/0.02177, allocations: 29.7 kB / 391.9 MB, free: 4.645 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001934/0.02196, allocations: 327.1 kB / 392.2 MB, free: 4.32 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.44e-05/0.02202, allocations: 103.2 kB / 392.3 MB, free: 4.219 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.738e-05/0.02208, allocations: 59.36 kB / 392.4 MB, free: 4.152 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.02222, allocations: 0.5235 MB / 392.9 MB, free: 3.617 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.345e-05/0.02231, allocations: 51.66 kB / 393 MB, free: 3.562 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001058/0.02241, allocations: 125.5 kB / 393.1 MB, free: 3.406 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001878/0.0226, allocations: 193.7 kB / 393.3 MB, free: 3.184 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.0226, allocations: 0 / 393.3 MB, free: 3.184 MB / 362.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003037/0.02291, allocations: 260.9 kB / 393.5 MB, free: 2.918 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.02292, allocations: 8 kB / 393.5 MB, free: 2.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.02292, allocations: 4.219 kB / 393.5 MB, free: 2.906 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001242/0.02305, allocations: 27.61 kB / 393.6 MB, free: 2.875 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001526/0.0232, allocations: 67.91 kB / 393.6 MB, free: 2.809 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007179/0.02392, allocations: 1.728 MB / 395.4 MB, free: 0.957 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.158e-05/0.024, allocations: 16.12 kB / 395.4 MB, free: 0.9414 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.257e-05/0.02401, allocations: 11.98 kB / 395.4 MB, free: 0.9297 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001251/0.02414, allocations: 178.5 kB / 395.6 MB, free: 0.75 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 9.84e-05/0.02424, allocations: 133.5 kB / 395.7 MB, free: 0.582 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001774/0.02441, allocations: 201.3 kB / 395.9 MB, free: 356 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.91e-07/0.02442, allocations: 0 / 395.9 MB, free: 356 kB / 362.7 MB Notification: Performance of matching and sorting (n=38) (initialization_lambda0): time 0.0002577/0.02467, allocations: 260.8 kB / 396.1 MB, free: 84 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.354e-06/0.02468, allocations: 4 kB / 396.1 MB, free: 80 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.918e-06/0.02468, allocations: 4 kB / 396.1 MB, free: 76 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001189/0.0248, allocations: 31.84 kB / 396.2 MB, free: 40 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001538/0.02496, allocations: 67.91 kB / 396.2 MB, free: 15.97 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006362/0.02559, allocations: 1.736 MB / 398 MB, free: 14.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.233e-05/0.02567, allocations: 8 kB / 398 MB, free: 14.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.103e-05/0.02568, allocations: 12 kB / 398 MB, free: 14.1 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 1 (currentController.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001075/0.02578, allocations: 284.1 kB / 398.3 MB, free: 13.81 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.758e-05/0.02583, allocations: 47.77 kB / 398.3 MB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.066e-05/0.02587, allocations: 43.44 kB / 398.4 MB, free: 13.72 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.02587, allocations: 4 kB / 398.4 MB, free: 13.72 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.02588, allocations: 3.938 kB / 398.4 MB, free: 13.71 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.02589, allocations: 0 / 398.4 MB, free: 13.71 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006441/0.02653, allocations: 0.6766 MB / 399 MB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.02653, allocations: 4 kB / 399.1 MB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001305/0.02666, allocations: 48.03 kB / 399.1 MB, free: 12.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.202e-05/0.02672, allocations: 27.61 kB / 399.1 MB, free: 12.9 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.405e-05/0.02673, allocations: 8 kB / 399.1 MB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006019/0.02733, allocations: 1.724 MB / 400.9 MB, free: 11.05 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.02733, allocations: 7.969 kB / 400.9 MB, free: 11.04 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003408/0.02767, allocations: 414.8 kB / 401.3 MB, free: 10.6 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.711e-05/0.02771, allocations: 39.81 kB / 401.3 MB, free: 10.56 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.21e-05/0.02773, allocations: 11.94 kB / 401.3 MB, free: 10.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.844e-05/0.02782, allocations: 15.98 kB / 401.3 MB, free: 10.54 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.322e-05/0.02787, allocations: 23.91 kB / 401.4 MB, free: 10.51 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.105e-06/0.02787, allocations: 4 kB / 401.4 MB, free: 10.51 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001682/0.02804, allocations: 275 kB / 401.6 MB, free: 10.24 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.02804, allocations: 4 kB / 401.6 MB, free: 10.23 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00033/0.02837, allocations: 144 kB / 401.8 MB, free: 10.09 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcpm.inductor.i,dcpm.inertia.w,torqueLoad.phi,deadTime.y,currentController.integrator.y) * 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 (24): * Single equations (assignments): 23 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001004/0.02847, allocations: 99.25 kB / 401.9 MB, free: 9.984 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005462/0.02902, allocations: 0.5957 MB / 402.5 MB, free: 9.352 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.02902, allocations: 0 / 402.5 MB, free: 9.352 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001474/0.02917, allocations: 245.5 kB / 402.7 MB, free: 9.09 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00032/0.02949, allocations: 68.61 kB / 402.8 MB, free: 9.027 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001365/0.03085, allocations: 0.9476 MB / 403.7 MB, free: 8.035 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.891e-05/0.03092, allocations: 117.1 kB / 403.8 MB, free: 7.902 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.498e-05/0.03102, allocations: 43.27 kB / 403.9 MB, free: 7.863 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.101e-05/0.03108, allocations: 32.5 kB / 403.9 MB, free: 7.828 MB / 378.7 MB Notification: Performance of SimCode: time 5.61e-07/0.03108, allocations: 0 / 403.9 MB, free: 7.828 MB / 378.7 MB Notification: Performance of Templates: time 0.006949/0.03803, allocations: 4.025 MB / 407.9 MB, free: 3.855 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.sim & ./ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Electrical/Machines/DCPM_CurrentControlled/DCPM_CurrentControlled.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.2357715847902]