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.001011/0.001011, allocations: 85.8 kB / 21.42 MB, free: 3.07 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.001037/0.001037, allocations: 162.2 kB / 24.82 MB, free: 8.777 MB / 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.8865/0.8865, allocations: 177 MB / 205.1 MB, free: 5.473 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.2797/0.2797, allocations: 34.86 MB / 296.6 MB, free: 0.5 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.513e-06/1.513e-06, allocations: 0 / 379.2 MB, free: 1.867 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.071e-05/2.222e-05, allocations: 6.312 kB / 379.2 MB, free: 1.859 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled): time 0.003851/0.003873, allocations: 3.923 MB / 383.1 MB, free: 13.91 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.001772/0.005645, allocations: 1.452 MB / 384.6 MB, free: 12.45 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002531/0.005898, allocations: 15.88 kB / 384.6 MB, free: 12.43 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000535/0.006433, allocations: 246.2 kB / 384.8 MB, free: 12.19 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002427/0.006676, allocations: 154.6 kB / 385 MB, free: 12.04 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000552/0.007228, allocations: 195.6 kB / 385.2 MB, free: 11.85 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004632/0.007691, allocations: 0.6505 MB / 385.8 MB, free: 11.2 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000228/0.007919, allocations: 180.7 kB / 386 MB, free: 11.02 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003409/0.00826, allocations: 367.1 kB / 386.4 MB, free: 10.66 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001754/0.008436, allocations: 199.3 kB / 386.6 MB, free: 10.46 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 5.409e-05/0.00849, allocations: 64 kB / 386.6 MB, free: 10.4 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.06e-05/0.00854, allocations: 60 kB / 386.7 MB, free: 10.34 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 5.97e-05/0.0086, allocations: 123.5 kB / 386.8 MB, free: 10.22 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001117/0.008712, allocations: 199.4 kB / 387 MB, free: 10.02 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003637/0.009075, allocations: 414.4 kB / 387.4 MB, free: 9.617 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.009079, allocations: 0 / 387.4 MB, free: 9.617 MB / 362.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.00908, allocations: 0 / 387.4 MB, free: 9.617 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.06e-06/0.009085, allocations: 0 / 387.4 MB, free: 9.617 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.000803/0.009888, allocations: 0.8851 MB / 388.3 MB, free: 8.695 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.009924, allocations: 8.031 kB / 388.3 MB, free: 8.688 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.124e-05/0.01002, allocations: 100.5 kB / 388.4 MB, free: 8.59 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003177/0.01033, allocations: 352.1 kB / 388.7 MB, free: 8.219 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.187e-05/0.01035, allocations: 29.38 kB / 388.8 MB, free: 8.191 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.916e-05/0.0104, allocations: 56.27 kB / 388.8 MB, free: 8.137 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003586/0.01076, allocations: 400.1 kB / 389.2 MB, free: 7.711 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/0.01078, allocations: 192 / 389.2 MB, free: 7.711 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.28e-05/0.0108, allocations: 20.38 kB / 389.2 MB, free: 7.691 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.149e-05/0.01081, allocations: 15.94 kB / 389.2 MB, free: 7.676 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001406/0.01095, allocations: 126.8 kB / 389.4 MB, free: 7.555 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001266/0.01222, allocations: 1.443 MB / 390.8 MB, free: 6.043 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003076/0.01252, allocations: 193.7 kB / 391 MB, free: 5.844 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.081e-05/0.01258, allocations: 47.66 kB / 391 MB, free: 5.793 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.705e-05/0.01259, allocations: 4 kB / 391 MB, free: 5.789 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.261e-05/0.01262, allocations: 41.39 kB / 391.1 MB, free: 5.738 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 1.763e-06/0.01262, allocations: 0 / 391.1 MB, free: 5.738 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003335/0.01295, allocations: 212.9 kB / 391.3 MB, free: 5.52 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.188e-05/0.01297, allocations: 55.41 kB / 391.3 MB, free: 5.453 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002183/0.01319, allocations: 382.5 kB / 391.7 MB, free: 5.066 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.688e-05/0.01321, allocations: 37.7 kB / 391.8 MB, free: 5.023 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001321/0.01334, allocations: 342.9 kB / 392.1 MB, free: 4.684 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.062e-05/0.01338, allocations: 87.2 kB / 392.2 MB, free: 4.598 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.791e-05/0.01344, allocations: 59.28 kB / 392.2 MB, free: 4.531 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003668/0.01381, allocations: 0.5273 MB / 392.8 MB, free: 3.992 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.843e-05/0.01385, allocations: 39.52 kB / 392.8 MB, free: 3.949 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.841e-05/0.01393, allocations: 130.8 kB / 392.9 MB, free: 3.781 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001298/0.01406, allocations: 170.4 kB / 393.1 MB, free: 3.578 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.01406, allocations: 0 / 393.1 MB, free: 3.578 MB / 362.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002254/0.01429, allocations: 235.2 kB / 393.3 MB, free: 3.34 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.205e-05/0.0143, allocations: 8 kB / 393.3 MB, free: 3.332 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.9e-06/0.01431, allocations: 4.25 kB / 393.3 MB, free: 3.328 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.263e-05/0.0144, allocations: 23.67 kB / 393.4 MB, free: 3.301 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001356/0.01453, allocations: 63.91 kB / 393.4 MB, free: 3.238 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006512/0.01519, allocations: 1.717 MB / 395.1 MB, free: 1.406 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.653e-05/0.01527, allocations: 31.95 kB / 395.2 MB, free: 1.375 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.101e-05/0.01528, allocations: 12 kB / 395.2 MB, free: 1.363 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 9.051e-05/0.01537, allocations: 154.9 kB / 395.3 MB, free: 1.207 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 7.119e-05/0.01544, allocations: 128.9 kB / 395.5 MB, free: 1.043 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001155/0.01556, allocations: 169.2 kB / 395.6 MB, free: 0.8398 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.152e-06/0.01556, allocations: 0 / 395.6 MB, free: 0.8398 MB / 362.7 MB Notification: Performance of matching and sorting (n=35) (initialization_lambda0): time 0.000202/0.01576, allocations: 224.9 kB / 395.8 MB, free: 0.6094 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.896e-06/0.01577, allocations: 11.94 kB / 395.9 MB, free: 0.5977 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.083e-06/0.01577, allocations: 0 / 395.9 MB, free: 0.5977 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.394e-05/0.01583, allocations: 27.92 kB / 395.9 MB, free: 0.5664 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001113/0.01594, allocations: 63.91 kB / 395.9 MB, free: 0.5039 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005624/0.0165, allocations: 1.721 MB / 397.7 MB, free: 14.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.944e-05/0.01657, allocations: 15.89 kB / 397.7 MB, free: 14.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.209e-05/0.01658, allocations: 12 kB / 397.7 MB, free: 14.64 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 9.117e-05/0.01667, allocations: 288.1 kB / 398 MB, free: 14.36 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.911e-05/0.01671, allocations: 39.77 kB / 398 MB, free: 14.32 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.614e-05/0.01675, allocations: 43.44 kB / 398.1 MB, free: 14.27 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.01675, allocations: 4 kB / 398.1 MB, free: 14.27 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.01676, allocations: 0 / 398.1 MB, free: 14.27 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.01676, allocations: 0 / 398.1 MB, free: 14.27 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004856/0.01724, allocations: 0.5567 MB / 398.6 MB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.01725, allocations: 0 / 398.6 MB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001154/0.01736, allocations: 43.98 kB / 398.7 MB, free: 13.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.064e-05/0.01741, allocations: 23.67 kB / 398.7 MB, free: 13.61 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.837e-06/0.01742, allocations: 3.938 kB / 398.7 MB, free: 13.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007973/0.01822, allocations: 1.724 MB / 400.4 MB, free: 11.76 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.01822, allocations: 4.125 kB / 400.4 MB, free: 11.76 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002443/0.01846, allocations: 369.9 kB / 400.8 MB, free: 11.38 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.601e-05/0.0185, allocations: 43.69 kB / 400.8 MB, free: 11.33 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.959e-05/0.01852, allocations: 8 kB / 400.8 MB, free: 11.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.521e-05/0.0186, allocations: 4 kB / 400.8 MB, free: 11.32 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.854e-05/0.01863, allocations: 19.97 kB / 400.9 MB, free: 11.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.622e-06/0.01864, allocations: 0 / 400.9 MB, free: 11.3 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00012/0.01876, allocations: 259 kB / 401.1 MB, free: 11.05 MB / 378.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01876, allocations: 0 / 401.1 MB, free: 11.05 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003458/0.01911, allocations: 207.3 kB / 401.3 MB, free: 10.84 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 8.729e-05/0.01919, allocations: 107.1 kB / 401.4 MB, free: 10.73 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003987/0.01959, allocations: 0.5454 MB / 402 MB, free: 10.14 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.01959, allocations: 4.062 kB / 402 MB, free: 10.14 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001126/0.01971, allocations: 237.4 kB / 402.2 MB, free: 9.883 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002927/0.02, allocations: 69.98 kB / 402.3 MB, free: 9.824 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001156/0.02115, allocations: 0.897 MB / 403.2 MB, free: 8.891 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.092e-05/0.02122, allocations: 117.2 kB / 403.3 MB, free: 8.758 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.185e-05/0.02131, allocations: 38.95 kB / 403.3 MB, free: 8.723 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001259/0.02143, allocations: 130.2 kB / 403.4 MB, free: 8.594 MB / 378.7 MB Notification: Performance of SimCode: time 7.41e-07/0.02143, allocations: 0 / 403.4 MB, free: 8.594 MB / 378.7 MB Notification: Performance of Templates: time 0.006352/0.02779, allocations: 4.212 MB / 407.6 MB, free: 4.449 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.790882153902203]