Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.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.001959/0.001959, allocations: 120 kB / 18.5 MB, free: 4.539 MB / 14.72 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.0027/0.0027, allocations: 209.7 kB / 21.46 MB, free: 1.59 MB / 14.72 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.467/1.467, allocations: 230.2 MB / 254.5 MB, free: 15.42 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00198/0.00198, allocations: 67.89 kB / 373.9 MB, free: 9.902 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1061, allocations: 53.32 MB / 427.2 MB, free: 4.484 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01079/0.1169, allocations: 8.223 MB / 435.4 MB, free: 12.22 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005023/0.122, allocations: 2.73 MB / 438.1 MB, free: 9.48 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008944/0.1229, allocations: 31.88 kB / 438.2 MB, free: 9.449 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001497/0.1244, allocations: 0.5591 MB / 438.7 MB, free: 8.887 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001211/0.1256, allocations: 464.5 kB / 439.2 MB, free: 8.43 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007661/0.1263, allocations: 358.3 kB / 439.5 MB, free: 8.082 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001712/0.128, allocations: 1.503 MB / 441 MB, free: 6.57 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007291/0.1288, allocations: 431.4 kB / 441.4 MB, free: 6.121 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008523/0.1296, allocations: 0.5603 MB / 442 MB, free: 5.559 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006903/0.1303, allocations: 0.6065 MB / 442.6 MB, free: 4.949 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001712/0.1305, allocations: 140 kB / 442.7 MB, free: 4.812 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003209/0.1308, allocations: 172 kB / 442.9 MB, free: 4.645 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002389/0.131, allocations: 302.8 kB / 443.2 MB, free: 4.348 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006149/0.1317, allocations: 0.6608 MB / 443.9 MB, free: 3.684 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001922/0.1336, allocations: 1.727 MB / 445.6 MB, free: 1.949 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.698e-06/0.1336, allocations: 0 / 445.6 MB, free: 1.949 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.1336, allocations: 4 kB / 445.6 MB, free: 1.945 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.826e-05/0.1336, allocations: 0 / 445.6 MB, free: 1.945 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.00263/0.1362, allocations: 1.541 MB / 447.1 MB, free: 360 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.475e-05/0.1363, allocations: 8.031 kB / 447.2 MB, free: 352 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006307/0.1369, allocations: 196 kB / 447.3 MB, free: 156 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2201/0.357, allocations: 0.7993 MB / 448.1 MB, free: 24.32 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001116/0.3571, allocations: 72.5 kB / 448.2 MB, free: 24.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000356/0.3575, allocations: 98.44 kB / 448.3 MB, free: 24.32 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002982/0.3605, allocations: 0.9595 MB / 449.3 MB, free: 24.16 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.087e-05/0.3605, allocations: 9.531 kB / 449.3 MB, free: 24.16 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000128/0.3607, allocations: 43.06 kB / 449.3 MB, free: 24.16 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.072e-05/0.3607, allocations: 27.56 kB / 449.3 MB, free: 24.16 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002166/0.3629, allocations: 0.6351 MB / 450 MB, free: 24.07 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00862/0.3715, allocations: 4.088 MB / 454.1 MB, free: 21.37 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001794/0.3733, allocations: 415.5 kB / 454.5 MB, free: 21.22 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005296/0.3738, allocations: 160.8 kB / 454.6 MB, free: 21.16 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.657e-05/0.3739, allocations: 7.984 kB / 454.6 MB, free: 21.16 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.855e-05/0.3739, allocations: 42.48 kB / 454.7 MB, free: 21.11 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 2.955e-06/0.3739, allocations: 0 / 454.7 MB, free: 21.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=40): time 0.004144/0.378, allocations: 1.328 MB / 456 MB, free: 20.29 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.491e-05/0.3781, allocations: 138 kB / 456.1 MB, free: 20.13 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002444/0.3805, allocations: 0.8883 MB / 457 MB, free: 19.74 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.897e-05/0.3806, allocations: 37.36 kB / 457.1 MB, free: 19.7 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005849/0.3812, allocations: 0.6069 MB / 457.7 MB, free: 19.23 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001852/0.3814, allocations: 151.1 kB / 457.8 MB, free: 19.12 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003326/0.3817, allocations: 144.1 kB / 458 MB, free: 19.04 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.3818, allocations: 336.3 kB / 458.3 MB, free: 18.72 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006599/0.3825, allocations: 174.6 kB / 458.5 MB, free: 18.65 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000801/0.3833, allocations: 0.4941 MB / 459 MB, free: 18.17 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001597/0.3849, allocations: 0.6843 MB / 459.6 MB, free: 17.59 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.295e-05/0.3849, allocations: 3.375 kB / 459.6 MB, free: 17.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002425/0.3873, allocations: 0.7486 MB / 460.4 MB, free: 17.25 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.03e-05/0.3873, allocations: 10.25 kB / 460.4 MB, free: 17.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.659e-05/0.3874, allocations: 11.56 kB / 460.4 MB, free: 17.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002523/0.3876, allocations: 38.81 kB / 460.5 MB, free: 17.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001096/0.3887, allocations: 170.6 kB / 460.6 MB, free: 17.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001171/0.3899, allocations: 1.382 MB / 462 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001121/0.391, allocations: 41.55 kB / 462 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.025e-05/0.3911, allocations: 37.38 kB / 462.1 MB, free: 15.78 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008957/0.392, allocations: 350.6 kB / 462.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006212/0.3926, allocations: 489.4 kB / 462.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001095/0.3937, allocations: 0.6562 MB / 463.6 MB, free: 14.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.201e-05/0.3937, allocations: 2.531 kB / 463.6 MB, free: 14.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001856/0.3956, allocations: 0.7305 MB / 464.3 MB, free: 14.16 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/0.3956, allocations: 10.61 kB / 464.3 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.124e-05/0.3956, allocations: 14.61 kB / 464.3 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001293/0.3957, allocations: 33.75 kB / 464.3 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000764/0.3965, allocations: 168.2 kB / 464.5 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008271/0.3973, allocations: 1.4 MB / 465.9 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009479/0.3983, allocations: 34.75 kB / 465.9 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.041e-05/0.3983, allocations: 32.94 kB / 466 MB, free: 12.69 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * 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.0002109/0.3985, allocations: 231.6 kB / 466.2 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002239/0.3988, allocations: 100.5 kB / 466.3 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001138/0.3999, allocations: 441.2 kB / 466.7 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.713e-06/0.3999, allocations: 5.438 kB / 466.7 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.3999, allocations: 0 / 466.7 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.804e-06/0.3999, allocations: 6.094 kB / 466.7 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00251/0.4024, allocations: 1.366 MB / 468.1 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.4024, allocations: 1.094 kB / 468.1 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003656/0.4028, allocations: 82.44 kB / 468.2 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.755e-05/0.4029, allocations: 29.14 kB / 468.2 MB, free: 11.42 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.927e-05/0.4029, allocations: 12.28 kB / 468.2 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006383/0.4036, allocations: 1.371 MB / 469.6 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.4036, allocations: 2.281 kB / 469.6 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001088/0.4046, allocations: 0.7128 MB / 470.3 MB, free: 9.57 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003176/0.405, allocations: 213.3 kB / 470.5 MB, free: 9.391 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000142/0.4051, allocations: 7.688 kB / 470.5 MB, free: 9.387 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004399/0.4055, allocations: 24.09 kB / 470.6 MB, free: 9.379 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.827e-05/0.4056, allocations: 31.75 kB / 470.6 MB, free: 9.371 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.629e-05/0.4057, allocations: 14.56 kB / 470.6 MB, free: 9.367 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008924/0.4065, allocations: 0.6062 MB / 471.2 MB, free: 9.09 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4065, allocations: 0 / 471.2 MB, free: 9.09 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001537/0.4081, allocations: 355.8 kB / 471.6 MB, free: 9.055 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.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 (39): * Single equations (assignments): 38 * 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.0002229/0.4083, allocations: 120.7 kB / 471.7 MB, free: 8.957 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001728/0.41, allocations: 0.9271 MB / 472.6 MB, free: 8.484 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.41, allocations: 1.438 kB / 472.6 MB, free: 8.484 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004035/0.4104, allocations: 288.8 kB / 472.9 MB, free: 8.309 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001215/0.4117, allocations: 243.1 kB / 473.1 MB, free: 8.238 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003251/0.4149, allocations: 1.832 MB / 475 MB, free: 7.172 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007281/0.4156, allocations: 1.024 MB / 476 MB, free: 6.453 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006148/0.4163, allocations: 121.5 kB / 476.1 MB, free: 6.426 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001909/0.4164, allocations: 58.77 kB / 476.2 MB, free: 6.418 MB / 366.1 MB Notification: Performance of SimCode: time 1.132e-06/0.4164, allocations: 0 / 476.2 MB, free: 6.418 MB / 366.1 MB Notification: Performance of Templates: time 0.02195/0.4384, allocations: 10.97 MB / 487.1 MB, free: 2.008 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.153374790214002]