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.001007/0.001007, allocations: 95.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.0009464/0.0009464, 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 0.9285/0.9285, 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.2633/0.2633, allocations: 34.86 MB / 296.3 MB, free: 484 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.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.854e-06/1.854e-06, allocations: 0 / 378.7 MB, free: 2.074 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.916e-05/3.101e-05, allocations: 4.422 kB / 378.8 MB, free: 2.07 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled): time 0.007897/0.007928, allocations: 3.976 MB / 382.7 MB, free: 14.07 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.002309/0.01024, allocations: 1.456 MB / 384.2 MB, free: 12.6 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004123/0.01065, allocations: 19.88 kB / 384.2 MB, free: 12.58 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006962/0.01135, allocations: 242.2 kB / 384.4 MB, free: 12.34 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002809/0.01163, allocations: 150.7 kB / 384.6 MB, free: 12.2 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004175/0.01204, allocations: 199.6 kB / 384.8 MB, free: 12 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006792/0.01272, allocations: 0.6465 MB / 385.4 MB, free: 11.35 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003161/0.01304, allocations: 184.7 kB / 385.6 MB, free: 11.17 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005846/0.01362, allocations: 371.1 kB / 386 MB, free: 10.8 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002199/0.01384, allocations: 187.4 kB / 386.2 MB, free: 10.62 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 7.224e-05/0.01392, allocations: 60 kB / 386.2 MB, free: 10.56 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.073e-05/0.01398, allocations: 64 kB / 386.3 MB, free: 10.5 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 7.236e-05/0.01405, allocations: 131.5 kB / 386.4 MB, free: 10.37 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001527/0.0142, allocations: 195.4 kB / 386.6 MB, free: 10.18 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005377/0.01474, allocations: 406.5 kB / 387 MB, free: 9.781 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.01474, allocations: 4 kB / 387 MB, free: 9.777 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.01475, allocations: 0 / 387 MB, free: 9.777 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.326e-05/0.01476, allocations: 3.938 kB / 387 MB, free: 9.773 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.001025/0.01578, allocations: 0.8774 MB / 387.9 MB, free: 8.859 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.01582, allocations: 8.031 kB / 387.9 MB, free: 8.852 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001345/0.01596, allocations: 104.5 kB / 388 MB, free: 8.75 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004128/0.01637, allocations: 356.1 kB / 388.3 MB, free: 8.375 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.486e-05/0.0164, allocations: 37.38 kB / 388.4 MB, free: 8.34 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.366e-05/0.01645, allocations: 52.33 kB / 388.4 MB, free: 8.289 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004657/0.01692, allocations: 420.2 kB / 388.8 MB, free: 7.844 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.01693, allocations: 8.125 kB / 388.8 MB, free: 7.836 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.518e-05/0.01695, allocations: 20.36 kB / 388.9 MB, free: 7.816 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/0.01696, allocations: 15.94 kB / 388.9 MB, free: 7.801 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002431/0.01721, allocations: 161.9 kB / 389 MB, free: 7.645 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001593/0.0188, allocations: 1.513 MB / 390.5 MB, free: 6.055 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004032/0.0192, allocations: 195.2 kB / 390.7 MB, free: 5.852 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.789e-05/0.01928, allocations: 63.66 kB / 390.8 MB, free: 5.785 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.014e-05/0.0193, allocations: 4 kB / 390.8 MB, free: 5.781 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.487e-05/0.01933, allocations: 41.33 kB / 390.8 MB, free: 5.73 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 3.466e-06/0.01933, allocations: 3.984 kB / 390.8 MB, free: 5.727 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004561/0.01979, allocations: 228.9 kB / 391.1 MB, free: 5.492 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.614e-05/0.01981, allocations: 55.41 kB / 391.1 MB, free: 5.426 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002771/0.02009, allocations: 402.7 kB / 391.5 MB, free: 5.02 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.129e-05/0.02011, allocations: 29.64 kB / 391.5 MB, free: 4.984 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001394/0.02025, allocations: 339 kB / 391.9 MB, free: 4.648 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.479e-05/0.0203, allocations: 91.22 kB / 392 MB, free: 4.559 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.493e-05/0.02036, allocations: 59.36 kB / 392 MB, free: 4.492 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.02049, allocations: 0.5157 MB / 392.5 MB, free: 3.965 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.123e-05/0.02056, allocations: 51.53 kB / 392.6 MB, free: 3.91 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001032/0.02066, allocations: 126.9 kB / 392.7 MB, free: 3.746 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001911/0.02085, allocations: 198.4 kB / 392.9 MB, free: 3.516 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.02086, allocations: 3.938 kB / 392.9 MB, free: 3.512 MB / 362.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002999/0.02116, allocations: 255.2 kB / 393.2 MB, free: 3.254 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/0.02117, allocations: 4 kB / 393.2 MB, free: 3.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.02118, allocations: 4.25 kB / 393.2 MB, free: 3.246 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00013/0.02131, allocations: 27.67 kB / 393.2 MB, free: 3.215 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001491/0.02146, allocations: 59.91 kB / 393.3 MB, free: 3.156 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007923/0.02225, allocations: 1.736 MB / 395 MB, free: 1.297 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001103/0.02236, allocations: 27.97 kB / 395 MB, free: 1.27 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.207e-05/0.02237, allocations: 12 kB / 395 MB, free: 1.258 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001246/0.0225, allocations: 170.8 kB / 395.2 MB, free: 1.086 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 9.649e-05/0.02259, allocations: 129 kB / 395.3 MB, free: 0.9219 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001612/0.02275, allocations: 181.3 kB / 395.5 MB, free: 0.707 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.182e-06/0.02275, allocations: 4 kB / 395.5 MB, free: 0.7031 MB / 362.7 MB Notification: Performance of matching and sorting (n=35) (initialization_lambda0): time 0.0002543/0.02301, allocations: 252.8 kB / 395.8 MB, free: 456 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.444e-06/0.02302, allocations: 4 kB / 395.8 MB, free: 452 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.02302, allocations: 4 kB / 395.8 MB, free: 448 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.283e-05/0.02309, allocations: 23.92 kB / 395.8 MB, free: 420 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001198/0.02321, allocations: 63.91 kB / 395.8 MB, free: 356 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006792/0.02389, allocations: 1.74 MB / 397.6 MB, free: 14.49 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.967e-05/0.02398, allocations: 19.83 kB / 397.6 MB, free: 14.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.019e-05/0.02399, allocations: 8 kB / 397.6 MB, free: 14.46 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (34): * Single equations (assignments): 33 * 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.0001202/0.02411, allocations: 292.1 kB / 397.9 MB, free: 14.17 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.351e-05/0.02416, allocations: 43.77 kB / 397.9 MB, free: 14.12 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.961e-05/0.0242, allocations: 43.44 kB / 398 MB, free: 14.08 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.0242, allocations: 4 kB / 398 MB, free: 14.08 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.0242, allocations: 0 / 398 MB, free: 14.08 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.02421, allocations: 3.938 kB / 398 MB, free: 14.07 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006034/0.02481, allocations: 0.6305 MB / 398.6 MB, free: 13.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.02481, allocations: 0 / 398.6 MB, free: 13.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001269/0.02494, allocations: 43.91 kB / 398.7 MB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.131e-05/0.025, allocations: 27.62 kB / 398.7 MB, free: 13.32 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.64e-05/0.02501, allocations: 11.98 kB / 398.7 MB, free: 13.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006324/0.02565, allocations: 1.72 MB / 400.4 MB, free: 11.47 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.02565, allocations: 0 / 400.4 MB, free: 11.47 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003077/0.02596, allocations: 394.1 kB / 400.8 MB, free: 11.06 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.69e-05/0.02599, allocations: 47.58 kB / 400.9 MB, free: 11.02 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.272e-05/0.02602, allocations: 4 kB / 400.9 MB, free: 11.01 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.984e-05/0.02611, allocations: 20.05 kB / 400.9 MB, free: 10.99 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.918e-05/0.02614, allocations: 15.91 kB / 400.9 MB, free: 10.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.678e-06/0.02615, allocations: 8 kB / 400.9 MB, free: 10.97 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001713/0.02633, allocations: 271.1 kB / 401.2 MB, free: 10.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02633, allocations: 0 / 401.2 MB, free: 10.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004127/0.02674, allocations: 203.3 kB / 401.4 MB, free: 10.5 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (dcpm.inductor.i,dcpm.emf.phi,dcpm.inertia.w,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 (21): * Single equations (assignments): 20 * 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 9.834e-05/0.02684, allocations: 103.2 kB / 401.5 MB, free: 10.39 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005614/0.0274, allocations: 0.5641 MB / 402 MB, free: 9.785 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.0274, allocations: 256 / 402 MB, free: 9.785 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001413/0.02754, allocations: 245.3 kB / 402.3 MB, free: 9.523 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003195/0.02786, allocations: 79.75 kB / 402.3 MB, free: 9.453 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001386/0.02925, allocations: 0.8931 MB / 403.2 MB, free: 8.523 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.931e-05/0.02932, allocations: 113.3 kB / 403.4 MB, free: 8.395 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001059/0.02942, allocations: 38.94 kB / 403.4 MB, free: 8.359 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.122e-05/0.02948, allocations: 32.5 kB / 403.4 MB, free: 8.324 MB / 378.7 MB Notification: Performance of SimCode: time 1.503e-06/0.02948, allocations: 0 / 403.4 MB, free: 8.324 MB / 378.7 MB Notification: Performance of Templates: time 0.006767/0.03625, allocations: 4.073 MB / 407.5 MB, free: 4.312 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: 2.9897282761521637]